G General

Script Tutorial - HTTP Functions

Script Tutorial - HTTP Functions
Details
Features
Contents
Reviews

Because the connection can be established from two sides,we will learn how to write a HTTP Data Sender and a HTTP Data Reciever.

Do not think that the sender sends data, and the reciever simply recieve it.
Is named Sender because the connection starts in the object itself, sending some data to http-srv to do some work, and then the response of the http-srv goes back to the object to make some work more.
Reciever.. well ok.. the connection starts from the http-srv and the SL Object simply recieve the data and do some work.

To do this, of course, we need one HTTP Server runnin 2 PHP Scripts ['HandleSenderFunc.php', 'SendToReciever.php'].
You can see the source code of this scripts at the end of this note.

Now the tutorial continue in the source code of 'HTTP Functions' attached to this object, so lets begin!
You may want to have the source opened while the object is runnin, and read the comments and code to understand whats happening.. no?

See item in Second Life