javahater has asked for the wisdom of the Perl Monks concerning the following question:
TE: deflate,gzip;q=0.3I tried to get rid of it (see below) without success and I'm sort of confused why Mechanize enforces this header when my browser(s) don't even use it.
require WWW::Mechanize; my $mech = WWW::Mechanize->new( agent => 'Mozilla/4.0 (compatible; MSI +E 6.0; Windows NT 5.1)', timeout => 60, stack_depth => 1, autocheck = +> 0); $mech->add_header( Accept => 'text/xml,application/xml,application/xht +ml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'); $mech->add_header( "Accept-Language" => 'en-us;q=0.8,en;q=0.5,de-de;q= +0.3'); $mech->add_header( "Accept-Charset" => 'ISO-8859-1,utf-8;q=0.7,*;q=0.7 +'); $mech->add_header( Connection => 'keep-alive'); $mech->add_header( "Keep-Alive" => 10); $mech->add_header( TE => undef);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Undeleteable header in WWW::Mechanize
by aquarium (Curate) on Dec 19, 2007 at 02:02 UTC | |
by javahater (Initiate) on Dec 19, 2007 at 17:50 UTC | |
|
Re: Undeleteable header in WWW::Mechanize
by ikegami (Patriarch) on Dec 19, 2007 at 18:22 UTC | |
by ikegami (Patriarch) on Dec 19, 2007 at 22:17 UTC | |
by javahater (Initiate) on Dec 20, 2007 at 21:08 UTC |