Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: WWW::Mechanize::GZip and post() Issue

by bliako (Monsignor)
on Aug 12, 2016 at 15:17 UTC ( [id://1169654]=note: print w/replies, xml ) Need Help??


in reply to Re^2: WWW::Mechanize::GZip and post() Issue
in thread WWW::Mechanize::GZip and post() Issue

Could the result you got back from the server you pasted in your first paragraph be the gzipped document you asked to download?

That server response looks much better that the "system unavailable" you got before trying Corion's suggestion.

Also use these setup in order to eliminate issues of rejection due to bad UAgent String and cookies turned off:

1) Use appropriate "user agent string" e.g.
my $mech = WWW::Mechanize->new( agent => 'Mozilla/5.0 (Windows NT 6.1; + WOW64; rv:47.0) Gecko/2010010 +1 Firefox/47.0' );
2) Use a cookie jar in order to save all the cookies for entire session leading to the file download,
my $mech = WWW::Mechanize->new( cookie_jar => {} );

Replies are listed 'Best First'.
Re^4: WWW::Mechanize::GZip and post() Issue
by Corion (Patriarch) on Aug 13, 2016 at 06:22 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1169654]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-25 12:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found