W3C home > Mailing lists > Public > www-talk@w3.org > July to August 1999

Re: Request Error !!

From: Mukul Gandhi <mgandhi@mtcindia.com>
Date: Mon, 26 Jul 1999 10:17:43 +0500
Message-Id: <3.0.6.32.19990726101743.007bebc0@192.50.200.71>
To: Kid <ronw@elang.stts.ac.id>, www-talk@w3.org
Problem seems to be in the first line. It should be like GET <documentpath>
HTTP/1.1 where <documentpath> is path of the document stripped of protocol
& the domain name e.g  GET /abc/index.html HTTP/1.1

But u may not be able to send HTTP/1.1 request to server that supports
HTTP/1.0(reverse is possible). 

-mukul

At 08:03 AM 7/26/99 +0700, Kid wrote:
>
>hi, all
>i have a problem that i didn't know where the mistakes that i made. I send
>a request like this :
>
>strcommand = "GET HTTP://www.ubaya.ac.id/ HTTP/1.1" + crlf
>strcommand = strcommand + "Host: www.ubaya.ac.id" + crlf
>strcommand = strcommand + "Accept: */*" + crlf + crlf
>
>socket.send(strcommand)
>
>I always get error messages like "HTTP/1.0 401 Request Url Is Invalid"..
>I don't know what's wrong with this request. 
>I also want to ask "may i send a HTTP/1.1 request into server that use
>HTTP/1.0 ??"
Received on Monday, 26 July 1999 00:53:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 October 2010 18:14:24 GMT