Re: fsockopen and HTTP 1.1 Problem

From: Date: Thu, 25 Mar 2004 12:39:40 +0000
Subject: Re: fsockopen and HTTP 1.1 Problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-181478@lists.php.net to get a copy of this message
Hello Mooki, Thursday, March 25, 2004, 12:26:27 PM, you wrote: M> I am using these to get the code of a page that is listed in the code M> below. I am using the example code of fsockopen on php.net as reference. M> I can get the response header but i have a problem with the CHUNKs. You could save yourself a whole load of headaches by getting the free class file Snoopy, that will do exactly what you want (and a lot more) http://snoopy.sourceforge.com Then your code would just look like this: <?php include "Snoopy.class.php"; $snoopy = new Snoopy; $submit_url = "http://myplanetside.station.sony.com/outfit.jsp"; $submit_vars["outfitId"] = "6607"; $submit_vars["worldId"] = "21; $snoopy->submit($submit_url,$submit_vars); ?> Then the whole page is stored in $snoop->results, the headers in $snoopy->headers, etc etc. Lots of variations, see the doc files. :) -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html

« previous php.general (#181478) next »