ekil1997 Millet
Registered User
Join date: 19 Nov 2009
Posts: 1
|
01-15-2010 00:42
Hi all,
Best place to ask this really. I already see the "LSL HTTP server/examples" page in the wiki, the page has some method to send information to object, but i don't know how to use c++ sending information to object.
Please tell me the method to send information to object by c++.
Thanks all.
- mike1007
|
Imnotgoing Sideways
Can't outlaw cute! =^-^=
Join date: 17 Nov 2007
Posts: 4,694
|
01-15-2010 00:49
You can interact with HTTP-in scripting just like you would any other web server. Are you programming a client side app that sends/receives data to SL? If you're in Windows, there's always the Winsock API. Otherwise, just look into what HTTP client APIs you prefer to use. (^_^)y
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
01-15-2010 01:07
or assuming you are not a programmer, and (perhaps?) confused about how you need to interact with those functions, a simpler explanation is that you just send it like any other http request....eg
http://< address of the prim goes here >/?< information that you are passing goes here >
which can be retrieved via llGetHTTPHeader( id, "x-query-string" ) (this method you can use from any browser address bar)
or if the method is POST or PUT, the information being passed would be in the body (which can be done from something as simple as an html page) you'd use the body argument to retrieve the information.
assuming you ARE a programmer, C++ http request handling methods are something that's better addressed to forums that deal with C++, which will give you more thorough answers.
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|