Thread LWP::UserAgent: unterschiedliche Content-Encoding bei Response
(28 answers)
Opened by
GwenDragon
at 2012-10-22 12:40
User since 2005-01-17
14776
Artikel
Admin1
Anderes Testcase:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use 5.008;
use strict;
use warnings;
use LWP::UserAgent;
my $ua = LWP::UserAgent->new;
my $req = HTTP::Request->new(
GET => 'http://labs.gwendragon.de/');
$req->header(
'Accept' => 'text/html',
'Accept-Encoding' => 'gzip, deflate',
);
my $res = $ua->request($req);
print $req->headers->as_string, "\n\n";
print $res->headers->as_string, "\n";
Win32:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
Accept: text/html Accept-Encoding: gzip, deflate User-Agent: libwww-perl/6.04
Cache-Control: max-age=7200 Connection: close Date: Mon, 22 Oct 2012 11:36:33 GMT Accept-Ranges: bytes ETag: "1c8a880-a09-4bbc1209bb440" Server: Apache Vary: Accept-Encoding,User-Agent Content-Length: 2569 Content-Type: text/html Expires: Mon, 22 Oct 2012 13:36:33 GMT Last-Modified: Wed, 21 Mar 2012 13:54:17 GMT Client-Date: Mon, 22 Oct 2012 11:36:20 GMT Client-Peer: 213.133.110.246:80 Client-Response-Num: 1 Content-Script-Type: text/javascript Content-Style-Type: text/css Link: <css/standard.css>; media="all"; rel="stylesheet"; type="text/css" Link: </favicon.ico>; rel="shortcut icon"; type="image/x-icon" Title: Domina de Ignis ÔÇô GwenDragons programmatische Hexenk├╝che X-Frame-Options: SAMEORIGIN X-LoadTime: D=791 X-Meta-Copyright: (c)2011 by GwenDragon X-Meta-Description: Testlabor von GwenDragon X-Meta-Keywords: Programme, Testlabor, Projekte, Bugs, Browser-Bugs X-Meta-Language: de X-Meta-Publisher: GwenDragon X-Meta-Robots: noindex,nofollow X-Meta-Robots: noarchive X-Meta-Robots: noodp X-Powered-By: Perl
Linux:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Accept: text/html Accept-Encoding: gzip, deflate User-Agent: libwww-perl/6.04
Cache-Control: max-age=7200 Connection: close Date: Mon, 22 Oct 2012 11:36:51 GMT Accept-Ranges: bytes ETag: "1c8a880-a09-4bbc1209bb440" Server: Apache Vary: Accept-Encoding,User-Agent Content-Encoding: gzip Content-Length: 1038 Content-Type: text/html Expires: Mon, 22 Oct 2012 13:36:51 GMT Last-Modified: Wed, 21 Mar 2012 13:54:17 GMT Client-Date: Mon, 22 Oct 2012 11:36:51 GMT Client-Peer: 213.133.110.246:80 Client-Response-Num: 1 X-Frame-Options: SAMEORIGIN X-LoadTime: D=657 X-Powered-By: Perl
View full thread LWP::UserAgent: unterschiedliche Content-Encoding bei Response
|