Put URL failing -- HTTP header problems?
dcragg at lacscentre.co.uk
Tue May 9 18:17:06 EDT 2006
On 9 May 2006, at 21:20, Sivakatirswami wrote:
> mmm... don't know what is going on
> put url "http://www.pacsoa.org.au/palms/Alsmithia/index.html"
Copying this directly from your mail and pasting in the message box
> returns, in Revolution:
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <TITLE>400 Bad Request</TITLE>
> <H1>Bad Request</H1>
> Your browser sent a request that this server could not understand.<P>
> The request line contained invalid characters following the
> protocol string.<P>
> <ADDRESS>Apache/1.3.26 Server at www.medical-library.net Port 80</
> and what's really strange is... if I hit the return key repeatedly..
> I get responses from different servers!
> <ADDRESS>Apache/1.3.26 Server at koudeoorlog.uitdaging.org Port 80</
> <ADDRESS>Apache/1.3.26 Server at comiccrawler.com Port 80</ADDRESS>
This looks pretty weird. I thought perhaps a DNS problem, but if
Firefox works, that looks unlikely. These other servers all share the
first half of their IP addresses (209.15.xxx.xxx). I'm not sure what
that indicates. :-(
Judging from the first response, it looks like the http request is
getting messed up somewhere. But it also looks like you're connecting
to the wrong IP address. Can you use libUrlSetLogField to see the
http request that is actually sent. On my machine, the relevant log
entry looks like this (Rev 2.7.1):
socket selected: 18.104.22.168:80|6925
GET /palms/Alsmithia/index.html HTTP/1.1
User-Agent: Revolution (MacOS)
More information about the use-livecode