"Gisle Aas" <[EMAIL PROTECTED]> writes:
> "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>'
> > The same problem applies to some other sites as well.  
> 
> Do you have other examples?

Seems like I only have examples from other low-cost
airlines using the same newest version of some "Open Skies" 
booking system:  
http://booking.virgin-express.com/skylights/cgi-bin/skylights.cgi
http://booking.sterlingticket.com/skylights/cgi-bin/skylights.cgi
And probably several others.  

> > 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>

Ah, now i realize that my subject text is wrong, these sites are
always returning invalid header data, only that the other 
user agents somehow accepts that.  

> 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.

Thanks a lot for your help, wether or not a permanent "fix" is made, now
I should be able to make a workaround for myself!

> >   Solfaktor.com, Spain
> 
> Sounds like a nice place to be :)

Yes, I write my Perl robot code in a garage on on Gran Canaria, so 
I just had a break down on the beach :-) 

    Rune Sandbakken
    Solfaktor.com, Spain

Reply via email to