"Rune Sandbakken" <[EMAIL PROTECTED]> writes:
> When I try to access this URL with LWP::UserAgent,
> for example with lwp-request(1p)
> http://www.bookryanair.com/skylights/cgi-bin/skylights.cgi
> I get 500 (Internal Server Error) Bad response code: 'HTTP/1.1 200>'
That status code certainly looks bad to me and does not follow the
HTTP spec at all. There should be a space after the number.
> The URL works fine with other browsers, such as lynx.
I'm not surprised about that.
> The same problem applies to some other sites as well.
Do you have other examples?
> I used linux strace(1), sniffed out the header data that
> LWP::UserAgent sends, and pasted request header data into
> telnet www.bookryanair.com 80, and then a normal
> page was returned. (which should elliminate header content
> being the problem).
Correct. The returned response starts out like this:
HTTP/1.1 200>
Content-type: text/html
<HTML>
...
I guess we could tweak Net::HTTP to deal with this kind of crap, but I
would like to see some of you other examples before I change anything.
> Solfaktor.com, Spain
Sounds like a nice place to be :)
Regards,
Gisle