|
Izanagi Asano
Registered User
Join date: 16 Apr 2007
Posts: 9
|
11-18-2007 16:23
This is my first time using llHTTPRequest and having searched the forums I thought my script would work. I've got my php script up and running and working and I've got the lsl script running. The problem I have is that when I have it say the body, it just gives me google, not my php. Any help? string host = "http://www.yossarian.phpnet.us/reservation.php"; key http; default { touch_start(integer total_number) { http = llHTTPRequest(host,[],""  ; } http_response(key request_id, integer status, list metadata, string body) { if (http == request_id) { llOwnerSay(body); } } }
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
gee I can't imagine why..
11-19-2007 04:12
I'd imagine it would be the google blog that the page is redirecting to while spamming multiple popups and other assorted crap.
for your own sake, and the sake of any accounts on your IP I sincerely hope that was NOT an attempt at exploiting forum viewers accounts, but just in case it was, I'm reporting it and letting LL decide because I can't be bothered to look through the pages code.
_____________________
| | . "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... | - 
|
|
Haruki Watanabe
llSLCrash(void);
Join date: 28 Mar 2007
Posts: 434
|
11-19-2007 06:34
@Void: Uhm - when I open the link he provided, all I get is «NUM:39Event 1,Event 2,Event 3,Event 4,Event 5» ... no popups, no redirects? @Izanagi: Maybe it would help, if you'd add the Request-Method and the encoding to your http-request? http = llHTTPRequest(host,[HTTP_METHOD, "POST", HTTP_MIMETYPE, "application/x-www-form-urlencoded"],""  ; this is just a guess, though... didn't have time to test it inworld...
|
|
Django Yifu
Beat Island Gaffer
Join date: 7 May 2007
Posts: 189
|
11-19-2007 06:52
Haruki..I got exactly the same thing when I check the php page in the example code. Void..Are you having a bad day or is there something about the example code that leads you to believe it might be an attempt at exploiting forum viewers accounts. Admittedly the OP may have changed the php since you looked and I have but I saw no indication that the OP was trying any sort of exploit. Izanagi...I would suggest a reformat of the HTTPRequest as Haruki mentioned. I also cannot get inworld to check but what has been suggetsed seems about right...at least it has the right sort of things in it  If you search the forums for llHTTPRequest there are a fair few examples you can use for the formatting of this sort of script.
_____________________
Tread softly upon the Earth for you walk on my face.
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
11-19-2007 20:09
I'm not accusing, please don't take it that way, I merely clicked through and reported what I got... perhaps it was an issue with a missing file or misconfigured server, that apparently has been fixed?
I've seen people attempt exploits on other boards in a similar fashion, so it was a precaution and a warning to others...
My appologies to the OP, as after some digging I found that issue was on my end and the way the link was parsed on the board (including a "; it redirected so fast I missed it at first)
my guess is that something similar happened to the op which is why they got a google page (actually a php blog that mentioned google)...
might want to try llEscapeUrl and llUnescapeURL, that should fix the problem (apparently invalid pages are redirected to my above mentioned page-o-nastiness )
on the down side I look like an idiot, on the upside I may have found the OPs problem... live and learn, again, my appologies
_____________________
| | . "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... | - 
|
|
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
|
11-19-2007 20:29
Something weird is going on with your server.
I can open that page in the browser just fine, but when SL tries to open it, I get that bunch of redirects which I presume is their version of a 404 not found or other error page.
Check your web host and see if they allow you a way to turn off any and all error page redirection; something strange and skanky must be going on with your web host, though, because your code looks 100% correct.
|