Re: get method http 1.1 eror

From: Date: Tue, 11 Nov 2003 15:08:28 +0000
Subject: Re: get method http 1.1 eror
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-169173@lists.php.net to get a copy of this message
--- QT <web_tur@yahoo.com> 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

« previous php.general (#169173) next »