get method http 1.1 eror

From: Date: Tue, 11 Nov 2003 20:05:07 +0000
Subject: get method http 1.1 eror
Groups: php.general 
Request: Send a blank email to php-general+get-169153@lists.php.net to get a copy of this message
Dear Sirs, I am using following method for GET but I am getting this error from server; HTTP/1.1 505 HTTP Version Not Supported Content-Type: text/plain Date: Tue, 11 Nov 2003 10:08:44 GMT Server: Apache Coyote/1.0 Connection: close <?php $fp = fsockopen ("www.example.com", 80, $errno, $errstr, 30); if (!$fp) { echo "$errstr ($errno)<br>\n"; } else { fputs ($fp, "GET / HTTP/1.0\r\nHost: www.example.com\r\n\r\n"); while (!feof($fp)) { echo fgets ($fp,128); } fclose ($fp); } ?>What should I do? I can't find any solutionBest Regards

« previous php.general (#169153) next »