--- QT <[EMAIL PROTECTED]> wrote:
> I am using following method for GET but I am getting this error from
> server;
> 
> HTTP/1.1 505 HTTP Version Not Supported

This means that the version of HTTP that you are using is not supported by
the server you are sending your request to.

> fputs ($fp, "GET / HTTP/1.0\r\nHost: www.example.com\r\n\r\n");

Since you are sending the Host header, this is a valid HTTP/1.1 request,
so you can just go ahead and change your HTTP/1.0 to HTTP/1.1.

Hope that helps.

Chris

=====
My Blog
     http://shiflett.org/
HTTP Developer's Handbook
     http://httphandbook.org/
RAMP Training Courses
     http://www.nyphp.org/ramp

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

Reply via email to