Difference between revisions of "Category:LSL HTTP"
Jump to navigation
Jump to search
Kri Ayakashi (talk | contribs) |
m (adding llSetContentType) |
||
(11 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
{{LSL Header|ml=*}} | |||
== HTTP == | == HTTP == | ||
[[LSL]] includes functions that utilize HTTP, the HyperText Transfer Protocol, for communicating with web servers on the outside internet. HTTP requests incur no speed penalty, but there is a limit on how many requests per [[ | [[LSL]] includes functions that utilize HTTP, the HyperText Transfer Protocol, for communicating with other scripts in-world or web servers on the outside internet. HTTP requests incur no speed penalty, but there is a limit on how many requests per [[object]] can be made. | ||
=== Functions === | |||
[[llEscapeURL]] Returns the UTF-8 encoded escape codes for selected characters. | ;[[llEscapeURL]]: Returns the UTF-8 encoded escape codes for selected characters. | ||
[[llHTTPRequest]] Requests information from an HTTP server. | ;[[llHTTPRequest]]: Requests information from an HTTP server. | ||
[[llLoadURL]] Loads a web page in an external browser. | ;[[llLoadURL]]: Loads a web page in an external browser. | ||
[[llUnescapeURL]] Returns the UTF-8 characters without escape codes. | ;[[llUnescapeURL]]: Returns the UTF-8 characters without escape codes. | ||
;[[llHTTPResponse]]: Responds to an HTTP request made to the script. | |||
;[[llGetFreeURLs]]: Returns the number of URLs that the script can request for HTTP-In. | |||
;[[llGetHTTPHeader]]: Returns the value of the requested header for a given HTTP request made to the script. | |||
;[[llReleaseURL]]: Releases a given URL so it may not be used further. | |||
;[[llRequestURL]]: Requests a non-secure URL to be used with HTTP-In. | |||
;[[llRequestSecureURL]]: Same as [[llRequestURL]] but requests a secure url <nowiki>(https://)</nowiki> | |||
;[[llSetContentType]]: sets the content type for non-text http responses. Called in the [[http_request]] event before the call to the function [[llHTTPResponse]] . ( or inside user-defined functions called in the [[http_request]] event ) | |||
=== Events === | |||
[[http_response]] Called when an HTTP request is complete. | ;[[http_request]]: Called when the script receives an HTTP request. | ||
;[[http_response]]: Called when an HTTP request is complete. | |||
{{LSLC|}}{{LSLC|Communications}} | |||
=== Understanding LSL HTTP Communications === | |||
[[File:VW_http.png|500px]] |
Latest revision as of 13:54, 6 July 2013
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
HTTP
LSL includes functions that utilize HTTP, the HyperText Transfer Protocol, for communicating with other scripts in-world or web servers on the outside internet. HTTP requests incur no speed penalty, but there is a limit on how many requests per object can be made.
Functions
- llEscapeURL
- Returns the UTF-8 encoded escape codes for selected characters.
- llHTTPRequest
- Requests information from an HTTP server.
- llLoadURL
- Loads a web page in an external browser.
- llUnescapeURL
- Returns the UTF-8 characters without escape codes.
- llHTTPResponse
- Responds to an HTTP request made to the script.
- llGetFreeURLs
- Returns the number of URLs that the script can request for HTTP-In.
- llGetHTTPHeader
- Returns the value of the requested header for a given HTTP request made to the script.
- llReleaseURL
- Releases a given URL so it may not be used further.
- llRequestURL
- Requests a non-secure URL to be used with HTTP-In.
- llRequestSecureURL
- Same as llRequestURL but requests a secure url (https://)
- llSetContentType
- sets the content type for non-text http responses. Called in the http_request event before the call to the function llHTTPResponse . ( or inside user-defined functions called in the http_request event )
Events
- http_request
- Called when the script receives an HTTP request.
- http_response
- Called when an HTTP request is complete.
Understanding LSL HTTP Communications
Subcategories
This category has the following 2 subcategories, out of 2 total.
Pages in category "LSL HTTP"
The following 15 pages are in this category, out of 15 total.