Put URL failing -- HTTP header problems?

Dave Cragg 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  
works fine.

>
> returns, in Revolution:
>
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <HTML><HEAD>
> <TITLE>400 Bad Request</TITLE>
> </HEAD><BODY>
> <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>
> <P>
> <HR>
> <ADDRESS>Apache/1.3.26 Server at www.medical-library.net Port 80</ 
> ADDRESS>
> </BODY></HTML>
>
> and what's really strange is... if I hit the return key repeatedly..
>
> I get responses from different servers!
>
> <HR>
> <ADDRESS>Apache/1.3.26 Server at koudeoorlog.uitdaging.org Port 80</ 
> ADDRESS>
> </BODY></HTML>
> <ADDRESS>Apache/1.3.26 Server at comiccrawler.com Port 80</ADDRESS>
> </BODY></HTML>

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: 209.15.79.148:80|6925
   GET /palms/Alsmithia/index.html HTTP/1.1
   Host: www.pacsoa.org.au
   User-Agent: Revolution (MacOS)

Cheers
Dave





More information about the use-livecode mailing list