develooper Front page | perl.libwww | Postings from December 2001

libwww LWP eBay related bug

Thread Next
December 2, 2001 03:33
libwww LWP eBay related bug
Message ID:

I am having extreme problems trying to fetch eBay items
using LWP.  Try to fetch an auction item like:

Note: This item number expires 12/9/2001

perl -MLWP::Simple -e 'getprint
500 Bad header: HTTP/1.0 200 OK

The weird thing is that it works fine with all versions of IE, Netscape,
lynx, etc, but fails for LWP and WGET.  I poke around and found a document
that describes the bug for wget

To summarize the report, it says that some of eBay's page (like the one
mentioned above) dont output a "Content-type" header, it uses the
"<META HTTP-EQUIV="Content-Type"" tag instead.  Why?  I dunno...
Wayne Schlitt developed a patch for wget-1.7.1-pre1 to assume "Content-type:
if no header is found.  I am hoping that the author of LWP will follow suit.

Like I say, most all browsers make this assumption and work fine.  Apparently
this is a fairly recent issue with these eBay pages.  Does anyone know of a
or patch for LWP to deal with this?


Chris Stuber (mapsurfer)

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About