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

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

Reply via email to