in reply to Re: Re: LWP not returning leading spaces in web page (ver 2)
in thread LWP not returning leading spaces in web page (ver 2)
Hmmm... on further investigation it looks like yahoo is returning different HTML to Moz when it requests gzipped content.
Running
my $ua = new LWP::UserAgent; my $request = HTTP::Request->new('GET', 'http://groups.yahoo.com/'); $request->headers->header( accept_encoding => 'x-gzip, gzip, identity', user_agent => 'Mozilla/5.0 (compatible; Konqueror/3; Linux)', ); my $r = $ua->request($request); print $r->content;
will print the gzipped content that you're seeing in Moz. So it's not that LWP is dropping anything, but that Moz is being given different content :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re:^4 LWP not returning leading spaces in web page (ver 2)
by aspen (Sexton) on Feb 02, 2003 at 22:51 UTC | |
by adrianh (Chancellor) on Feb 02, 2003 at 23:12 UTC | |
by aspen (Sexton) on Feb 03, 2003 at 00:41 UTC |