Thread Net::HTTP interner Puffer (14 answers)
Opened by rosti at 2011-03-19 23:01

topeg
 2011-03-21 21:26
#146727 #146727
User since
2006-07-10
2611 Artikel
BenutzerIn

user image
Man kann bei LWP::UserAgent den Header explizit setzen:
Code (perl): (dl )
1
2
3
4
5
6
..
my $service="http://www.test.org";
my $header=HTTP::Headers->new('Accept-Encoding'=>'deflate');
my $req=HTTP::Request('GET',$service,$header);
my $res=$lwp_user_agent->request($req);
...

View full thread Net::HTTP interner Puffer