Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llHTTPRequest--PHP Reading Headers

Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
10-07-2006 14:31
NOTICE: I have already read the LSL Wiki regarding llHTTPRequest and have attempted all example scripts relating to gathering header information (both apache_request_headers() and the emu_getallheaders() suggestion). Neither have worked.


While it's entirely possible to pass all information needed back and forth from a script with the body of llHTTPRequest...it would be nice to be able to read the default headers sent with every llHTTPRequest on a PHP page...

I am running Apache 1.3.37 on my server...with PHP 5.1.6...

I'm an experienced PHP/MySQL/JavaScript/C# programmer...just have not run into the need to grab non-standard headers before (usually $_SERVER['x'] works just fine)...and so I'm a bit stuck as to how to grab them...
_____________________
--AeonVox--

Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
10-07-2006 14:56
Have you tried a print_r($_SERVER); ? It's quite revealing =^.^=
_____________________
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
10-07-2006 20:49
That helped a ton. I just had to AJAX the webpage in order to get a full print_r($_SERVER) return for me (instead of tryin' to get it through SL...where the print_r maxes out the size of the available return before getting to anything useful).

Appreciated.
_____________________
--AeonVox--

Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.