RE: [PHP] Accessing HTTP Content

From: Date: Mon, 29 Mar 2004 21:09:14 +0000
Subject: RE: [PHP] Accessing HTTP Content
Groups: php.general 
Request: Send a blank email to php-general+get-181719@lists.php.net to get a copy of this message
Thanks, I had a look at Snoopy, and it looks good....but I don't think it can do what I want. Snoopy Fetches data from a known URL - what I want to do is read the HTTP content no matter where it is sent from. Simple, really - $GLOBALS['HTTP_RAW_POST_DATA']. Found this by looking at SOAP server class that does what I want (except that I am not sending SOAP) Thanks for your time! Quentin Bennett -----Original Message----- From: Burhan Khalid [mailto:phplist@meidomus.com] Sent: Monday, 29 March 2004 10:11 p.m. To: Quentin Bennett; php-general@lists.php.net Subject: Re: [PHP] Accessing HTTP Content Quentin Bennett wrote: > Hi, > > Is this possible, please? > > What I want to do is, using an HTTP class, > > $myComms = new Ihttp_base_class(&$httpParams); > $myComms->request = $some_document; > $myComms->requrl = "/mysite/myscript.php"; > $myComms->Send(); > > "myscript.php" runs within the same Apache server, processes > some_document, and returns an HTTP response. PHP is running as an Apache module, not CGI. > > Within myscript.php, I can 'getallheaders()' to access the HTTP > headers, but I want to access the contents of $some_document - i.e. the content portion of the HTTP message. > > $some_document can't be sent as a GET/POST variable, as it exceeds the > limitations on those. Have you considered using something like Snoopy? http://snoopy.sf.net Could be worth a try. The information contained in this email is privileged and confidential and intended for the addressee only. If you are not the intended recipient, you are asked to respect that confidentiality and not disclose, copy or make use of its contents. If received in error you are asked to destroy this email and contact the sender immediately. Your assistance is appreciated.

« previous php.general (#181719) next »