Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
No such thing as a small change
 
PerlMonks  

send compressed content with LWP::UserAgent

by david2008 (Beadle)
on Feb 01, 2012 at 12:57 UTC ( #951204=perlquestion: print w/ replies, xml ) Need Help??
david2008 has asked for the wisdom of the Perl Monks concerning the following question:

Is there a way to send compressed content through LWP::UserAgent?
Is there a way to say LWP::UserAgent that every post request will be sent compressed?

Comment on send compressed content with LWP::UserAgent
Re: send compressed content with LWP::UserAgent
by lune (Scribe) on Feb 01, 2012 at 14:57 UTC
    You need to set the appropriate HTTP Headers, as mentioned here: Gzip (under "Other uses").
    For setting them use HTTP::Headers as described in LWP::UserAgent.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://951204]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (18)
As of 2013-05-24 19:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (512 votes), past polls