Re: socket_read can not read the whole HTTP page?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri 28 Dec 07, ked wrote:
> I wrote those script  to get HTTP url content, and it  works , but it
> can't read the whole content of the page.
> Blocked on "while ($out = socket_read($socket, 1024)) ".
> $in .= "GET {$file} HTTP/1.1\r\n";
try to change this to $in .= "GET {$file} HTTP/1.0\r\n";

> $in .= "Connection: Keep-Alive\r\n\r\n";
and change this to 
$in .= "Connection: closed\r\n\r\n";

-- 
Eddie Dunckley - eddie@xxxxxxxxxx - Realtime Travel Connections 
IBE Development, www.rttc.co.za, cell 083-379-6891, fax 086-617-7831
Where 33deg53'37.23"S 18deg37'57.87"E Cape Town Bellville Oakdale ZA
       Chaos, panic, and disorder - my work here is done.

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux