Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>LSL's llHTTPRequest function and corresponding http_response event are definitely your best bet.</p> <p>Contrary to the assumption posed in your question, using http does not necessitate using "html forms". The POST (or PUT) payload can contain data organized however you want. A REST interface is a good way to do the kind of machine-to-machine http communication we're talking about. One advantage of REST over html or xml is that REST can be much less verbose. This is important when you start approaching LSL's 2048 character limit on http responses.</p> <p>Though LSL has two other methods of communicating with the rest of the internet (email and xml-rpc), their use in LSL scripts is <em>highly</em> discouraged these days. Both of these systems (as currently implemented in Second Life) rely on centralized servers to route messages to their destinations. This doesn't scale well. These servers are under ever-increasing load as Second Life grows. llHTTPRequest on the other hand runs entirely on the simulator running your script, which means you don't have to worry about missing messages because of overloaded central servers.</p> <p>Finally, there will soon be a new feature added to LSL allowing any script to act as an http server (see <a href="http://wiki.secondlife.com/wiki/LSL_http_server" rel="nofollow noreferrer">http://wiki.secondlife.com/wiki/LSL_http_server</a>). It's currently (as of June 2009) deployed on the beta grid, but should be on the main grid with the next major update. With this addition, many of the current LSL-to-web programs that regularly poll a web server for updated data will instead be able to have updates pushed to them when they happen.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload