Re: [PHP] Reading all headers sent

2005-03-29 Thread martin
Solved, Just in case someone finds it usefull. I could get the raw post with : $send = $GLOBALS['HTTP_RAW_POST_DATA']; And then the headers I need in the $_SERVER globals. $header[] = "MessageType:$_SERVER[HTTP_MESSAGETYPE]"; // CALL $header[] = "Content-Type:$_SERVER[CONTENT_TYPE]"; // te

Re: [PHP] Reading all headers sent

2005-03-21 Thread Richard Lynch
Search php.net for "RAW HTTP" Maybe. On Fri, March 18, 2005 3:28 am, martin said: > Thanks for the answer, > what I'm trying to achieve is a php proxy that receives any GET/POST > request with correspoding headers and brings back the results to the > caller. > > Let's say I do a google search r

Re: [PHP] Reading all headers sent

2005-03-18 Thread M. Sokolewicz
Jesper Goos wrote: The $SERVER variable is an array, so try this: "; print_r($_SERVER); echo ""; ?> regards Jesper martin wrote: Hi, I wanted to know if there is some way to expose the full headers sent to a php page. I found in google that for windows there is $_SERVER['ALL_HTTP'] to read all t

Re: [PHP] Reading all headers sent

2005-03-18 Thread martin
Thanks for the answer, what I'm trying to achieve is a php proxy that receives any GET/POST request with correspoding headers and brings back the results to the caller. Let's say I do a google search request with curl: // I would like all this to be sent by another page --- (header + xml) $data

Re: [PHP] Reading all headers sent

2005-03-18 Thread Jesper Goos
The $SERVER variable is an array, so try this: "; print_r($_SERVER); echo ""; ?> regards Jesper martin wrote: Hi, I wanted to know if there is some way to expose the full headers sent to a php page. I found in google that for windows there is $_SERVER['ALL_HTTP'] to read all the headers sent but