[Opensim-users] HTTP - llRequestURL/llRequestSecureURL
BlueWall
jamesh at bluewallgroup.com
Tue Nov 29 03:07:22 UTC 2011
On 11/28/2011 06:52 PM, Joshua Rubeck wrote:
> Yes. On the region servers they are set to the grid server. We also
> tried setting it to the region servers. Nothing has worked so far
>
This is 100% in the region, so you'll need to use the host that the
region is on for that. Did you consider the region port as well?
Here is part of my ini for the network...
[Network]
http_listener_port = 9930
; Need these if you want to do https...
https_listener = True
https_port = 9935
cert_path = "/home/opensim/etc/wx-server.p12"
cert_pass = "password"
Try this script to show you the url when you touch it:
string url;
default
{
state_entry()
{
llSay(0, "Script running");
llSetText("HTTP",<0,1,0>,1.0);
}
touch_start(integer _det) {
//llRequestSecureURL();
llRequestURL();
}
http_request(key ID, string Method, string Body) {
if (Method == URL_REQUEST_GRANTED) {
url = Body;
llSay(0,Body);
} else if (Method == URL_REQUEST_DENIED) {
llOwnerSay("No URLs free !");
} else if (Method == "GET") {
llHTTPResponse(ID, 200, "Hello there !");
}
}
}
mine shows...
http://74.237.137.28:9930/lslhttp/aa878efe-7156-4bb6-bbde-aab17eb85f77/
and...
https://74.237.137.28:9935/lslhttps/4d4a8d93-0846-4b13-94d0-7f0b19e6c834/
-BlueWall
More information about the Opensim-users
mailing list