Re: libwww-perl-5.53_90

Julian Monteiro (julian@buscape.com.br)
Thu, 19 Apr 2001 11:57:07 -0300


Gisle Aas wrote:

> libwww-perl-5.53_90 is now on its way to CPAN.  This release updates
> my attempt at HTTP/1.1 support.  The LWP::Protocol::http11 module now
>

Thanks.

>     Experimental HTTP/1.1 support.  New module called Net::HTTP that
>     provide the lower level interface and a LWP::Protocol::http11
>     module that builds on it.  The HTTP/1.1 protocol module must be
>     loaded and registered explicitly, otherwise the old and trustworthy

How can I do that ? I tried to use:

$url->scheme('http11');

and do the request, but I got a error message:
LWP::UserAgent::request: ()
LWP::UserAgent::simple_request: GET http11://testehost/index.html
LWP::UserAgent::_need_proxy: Not proxied
"my" variable @h masks earlier declaration in same scope at
/usr/lib/perl5/site_perl/5.6.0/LWP/Protocol/http11.pm line 254.
Can't locate object method "host" via package "URI::_foreign" at
/usr/lib/perl5/site_perl/5.6.0/URI/WithBase.pm line 48.

So I forced to use scheme http11 on UserAgent.pm with sucess, but I think I'm
doing some mistakes

Thanks for your help,


>

>   HTTP/1.0 module will be used.

>    LWP::Protocol::GHTTP will try to use the get_headers() methods

>     so that it can actually extract all the headers.
>
> Regards,
> Gisle