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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to