Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

send compressed content with LWP::UserAgent

by david2008 (Scribe)
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 (Monk) 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 perusing the Monastery: (7)
As of 2014-12-28 03:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (178 votes), past polls