Advertisement
BlueWall

Simple http server

Aug 20th, 2016
497
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. default
  2. {
  3.     state_entry()
  4.     {
  5.         llSay(0, "Script running");
  6.         llRequestURL();    
  7.     }
  8.    
  9.     http_request(key id, string method, string body)
  10.     {
  11.         if (method == URL_REQUEST_GRANTED)
  12.         {
  13.             llSay(0,"URL: " + body);
  14.         }
  15.         else if (method == "GET")
  16.         {
  17.             llHTTPResponse(id,200,"Hello from my simulator");
  18.         }
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement