Difference between revisions of "User:Darien Caldwell/HTTP-DNS"
Line 30: | Line 30: | ||
if no services are defined, 'Empty' is returned. | if no services are defined, 'Empty' is returned. | ||
}} | |||
{{void-box | |||
|title=Using the DNS URL | |||
|content= | |||
Once a service has been entered, you can use the serivce name in the URL to do automatic redirection. | |||
Example: | |||
You establish a service named 'intro1' | |||
The URL for the service is: | |||
http://sim3015.aditi.lindenlab.com:12046/cap/3ff4f3f2-ea08-76c1-cef6-a22b4a573a7c | |||
By Navigating to http://yourappname.appspot.com/intro1 | |||
The page will be automatically redirected to the service URL: | |||
http://sim3015.aditi.lindenlab.com:12046/cap/3ff4f3f2-ea08-76c1-cef6-a22b4a573a7c | |||
If the service name used in the URL is invalid, 'None' is returned. | |||
}} | }} |
Revision as of 17:30, 16 August 2012
Dynamic DNS service for HTTP-IN via Google App Engine:
Once it's installed you can start using it:
- http://yourappname.appspot.com/?type=add&name=[NAME]&url=[URL]
Adds a new service named [NAME] with the HTTP-IN url [URL]. The URL must be converted to a string using llEscapeURL() first.
if the URL is added, returns the response 'Added', or 'Found' if the service already exists.
Removes the given service named [NAME].
Returns 'Removed' if successful, or 'None' if the service wasn't found.
- http://yourappname.appspot.com/?type=update&name=[NAME]&url=[URL]
Updates the service named [NAME] with the HTTP-IN url [URL].
The URL must be converted to a string using llEscapeURL() first. If the URL is updated the response 'Updated' is returned. If the service doesn't exist, a new service is added and 'Added' is returned.
Retrieves the url of the given service named [NAME].
Returns the URL if the service is found, or 'None' if the service wasn't found. the returned URL must be converted to a URL using llUnescapeURL()
Lists the available services currently stored.
Returns a Comma seperated list of service names, ending with the word 'END'.if no services are defined, 'Empty' is returned.
Using the DNS URL
Once a service has been entered, you can use the serivce name in the URL to do automatic redirection.
Example:
You establish a service named 'intro1'
The URL for the service is: http://sim3015.aditi.lindenlab.com:12046/cap/3ff4f3f2-ea08-76c1-cef6-a22b4a573a7c
By Navigating to http://yourappname.appspot.com/intro1 The page will be automatically redirected to the service URL:
http://sim3015.aditi.lindenlab.com:12046/cap/3ff4f3f2-ea08-76c1-cef6-a22b4a573a7c
If the service name used in the URL is invalid, 'None' is returned.