"Thurn, Martin (Intranet)" <[EMAIL PROTECTED]> writes:

> Is this a bug in LWP, or is yahoo.com sending non-comforming HTTP?

They are definitively sending back non-conforming HTTP.  This is what
comes back:

-----------------------------------------------------------------------------------
HTTP/1.0 302 Found
Date: Wed, 04 Sep 2002 15:10:40 GMT
Location: http://google.yahoo.com/bin/query?p=%22Yoda+stories%22&hc=0&hs=0
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1

The document has moved <A 
HREF="http://google.yahoo.com/bin/query?p=%22Yoda+stories%22&amp;hc=0&amp;hs=0";>here</6d
     
>Additionally, a 302 Found
error was encountered while trying to use an ErrorDocument to handle the request.

0

-----------------------------------------------------------------------------------

They clam the content use 'Transfer-Encoding: chunked' but they did
not send a byte count for the first chunk.  But they do appear to have
the "0\n" to mark EOF.  My guess is that LWP get confused when trying
to pick up trailing headers that can occur after the last chunk.

Regards,
Gisle

> Yahoo is trying to redirect this URL to another, but LWP does not recognize the 
>format:
> 
> # GET 'http://search.yahoo.com/bin/search?p=%22Yoda+stories%22'
> Illegal hexadecimal digit 'T' ignored at 
>/usr/local/lib/perl5/site_perl/5.8.0/Net/HTTP/Methods.pm line 428.
> 
> # perl -MLWP -e'print $LWP::VERSION'
> 5.65

Reply via email to