RE: [PHP] Weird fsockopen behavior - SOLUTION

2002-03-22 Thread Boaz Yahav
(I doubt also that it is a rivetting read :)) I hope this helps any future developers who are considering the use of high level socket connections with HTTP/1.1. -Original Message- From: Boaz Yahav Sent: Friday, March 22, 2002 5:49 PM To: PHP General (E-mail) Subject: [PHP] Weird fso

[PHP] Weird fsockopen behavior

2002-03-22 Thread Boaz Yahav
Hi I'm using $fp=fsockopen($URL,80, &$errno, &$errstr,10); set_socket_blocking($fp,false); to get the HTML from a remote site and monitor how long it took me to DL the HTML. The next lines are like this : if ($fp) { $SendGetStart = getmicrotime(); fwrite($fp,"GET / HTTP/1.1\