fsockopen

From: Date: Mon, 21 Jul 2003 22:27:28 +0000
Subject: fsockopen
Groups: php.general 
Request: Send a blank email to php-general+get-156159@lists.php.net to get a copy of this message
Is there a way to get fsockopen to suppress the header information it returns. I have no use for the crap, have no idea how to use a regexp to get it out of there (nor does anyone on this list it would seem either). I'd like to be able to grab a web page as it is presented to the browsers (as seen in view source). HTTP/1.1 200 OK Date: Tue, 22 Jul 2003 05:14:41 GMT Server: Apache/1.3.27 (Unix) mod_jk/1.1.0 mod_ssl/2.8.12 OpenSSL/0.9.6g Set-Cookie: JSESSIONID=jwjesefa81;Path=/Interface Connection: close Content-Type: text/html;charset=ISO-8859-1 The above crap needs to not be returned. Any ideas?

« previous php.general (#156159) next »