Advertisement
Guest User

Untitled

a guest
Jul 30th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. 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
  2.  
  3. default
  4. {
  5. touch_start(integer number)
  6. {
  7.  
  8. requestid = llHTTPRequest("http://httpbin.org/post",
  9. [HTTP_METHOD, "POST",
  10. HTTP_MIMETYPE, "application/x-www-form-urlencoded"],
  11. "parameter1="+(string)llDetectedKey(0));
  12. }
  13.  
  14. http_response(key request_id, integer status, list metadata, string body)
  15. {
  16. if (request_id == requestid){
  17. llOwnerSay("Web server said: " + (string)status + " "+body);
  18. }
  19.  
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement