Send HTTP requests, handle inbound requests, and encode URLs.
What do you want to do?
key llHTTPRequest(string url, list parameters, string body)Sends an HTTP request to the specified url containing body and configured via parameters. Raises an http_response event and returns a key query handle identifying the request.key llRequestSecureURL()Asynchronously requests one secure HTTPS (SSL, port 12043) URL for use by this object, triggering an http_request event. Returns a key query handle.llHTTPResponse(key request_id, integer status, string body)Responds to the incoming HTTP request identified by request_id with the HTTP status code status and the payload body.string llEscapeURL(string url)Returns a string representing the escaped/encoded version of url, replacing spaces with '%20' and non-alphanumeric characters with their '%xx' hexadecimal UTF-8 equivalent.Reference
15 topic entries
Badges
Kind
string llEscapeURL(string url)Returns a string representing the escaped/encoded version of url, replacing spaces with '%20' and non-alphanumeric characters with their '%xx' hexadecimal UTF-8 equivalent.functioninteger llGetFreeURLs()Returns an integer representing the number of available HTTP URLs (remaining for the owner if the object is attached, or for the region if unattached).functionstring llGetHTTPHeader(key request_id, string header)Returns a string representing the value of the specified header associated with the HTTP request_id.functionkey llHTTPRequest(string url, list parameters, string body)Sends an HTTP request to the specified url containing body and configured via parameters. Raises anhttp_responseevent and returns a key query handle identifying the request.functionllHTTPResponse(key request_id, integer status, string body)Responds to the incoming HTTP request identified by request_id with the HTTP status code status and the payload body.functionllLoadURL(key avatar, string message, string url)Shows a dialog box displaying message to the avatar avatar offering to open the specified url. Clicking yes launches the URL in their default web browser.functionS (Sleeps 0.1s)llReleaseURL(string url)Releases the specified url (previously obtained viallRequestURL), rendering it no longer usable.functionkey llRequestSecureURL()Asynchronously requests one secure HTTPS (SSL, port 12043) URL for use by this object, triggering anhttp_requestevent. Returns a key query handle.functionkey llRequestURL()Asynchronously requests one HTTP URL for use by this script, triggering anhttp_requestevent. Returns a key query handle.functionllSetContentType(key request_id, integer content_type)Sets the 'Content-Type' header of subsequent HTTP server responses (viallHTTPResponse) for request_id using the specified content_type (a CONTENT_TYPE_* constant).functioninteger llSetLinkMedia(integer link, integer face, list params)Sets the media parameters specified by params on face of the linked prim link without a script delay. Returns an integer STATUS_* flag detailing success or failure.functioninteger llSetPrimMediaParams(integer face, list params)Sets the media parameters specified by params on the designated face of the prim. Returns an integer STATUS_* flag detailing success or failure.functionS (Sleeps 1s)string llUnescapeURL(string url)Returns a string representing the unescaped/decoded version of url, replacing '%20' with spaces and decoding raw UTF-8 characters.functionhttp_response(key request_id, integer status, list metadata, string body)Triggered when an HTTP response body is received for a pending request_id, or if the request fails or times out.eventhttp_request(key request_id, string method, string body)Triggered when the script's registered URL receives an incoming HTTP request identified by request_id.event
No matching entries. Try a different term or filter.