in reply to Re: LWP::UserAgent Wrongly Uses HTTP/1.1
in thread LWP::UserAgent Wrongly Uses HTTP/1.1
use LWP; require LWP::Protocol::http; require LWP::Protocol::http10; #do an HTTP/1.0 request LWP::Protocol::implementor('http', 'LWP::Protocol::http10'); my $ua = LWP::UserAgent->new; my $req = HTTP::Request->new(GET => "$url"); my $res = $ua->request($req); #now do an HTTP/1.1 request LWP::Protocol::implementor('http', 'LWP::Protocol::http'); my $ua2 = LWP::UserAgent->new; my $req2 = HTTP::Request->new(GET => "$url"); my $res2 = $ua->request($req2);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: LWP::UserAgent Wrongly Uses HTTP/1.1
by edan (Curate) on Nov 20, 2003 at 15:13 UTC | |
by Anonymous Monk on Nov 20, 2003 at 15:27 UTC | |
|
Re: Re: Re: LWP::UserAgent Wrongly Uses HTTP/1.1
by Anonymous Monk on Nov 20, 2003 at 14:47 UTC |