Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- key requestid; // just to check if we're getting the result we've asked for; all scripts in the same object get the same replies
- default
- {
- touch_start(integer number)
- {
- requestid = llHTTPRequest("http://httpbin.org/post",
- [HTTP_METHOD, "POST",
- HTTP_MIMETYPE, "application/x-www-form-urlencoded"],
- "parameter1="+(string)llDetectedKey(0));
- }
- http_response(key request_id, integer status, list metadata, string body)
- {
- if (request_id == requestid){
- llOwnerSay("Web server said: " + (string)status + " "+body);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement