Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string URL = "http://gridurl.appspot.com/go/e0a86ba9-99d8-4aa7-80b9-b04d42e2fec7";
- key request;
- default
- {
- touch_start(integer total_number)
- {
- string json = llList2Json(JSON_ARRAY,["this is the message from the client to the server"]);
- request = llHTTPRequest(URL,[HTTP_METHOD,"POST",
- HTTP_MIMETYPE,"application/json",
- HTTP_VERBOSE_THROTTLE,FALSE],
- json);
- }
- http_response(key q,integer status,list meta,string body) {
- if (q == request) {
- if (status != 200) {
- llOwnerSay("Connection failure");
- return;
- }
- llOwnerSay("RESPONSE: "+body);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement