Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: [LWP::UserAgent] Send POST request and ignore response

by rhesa (Vicar)
on May 10, 2008 at 14:16 UTC ( #685877=note: print w/replies, xml ) Need Help??


in reply to [LWP::UserAgent] Send POST request and ignore response

Set the chunk size to a low value, and add a callback to the request that dies immediately. That will abort the response after the first chunk has been read.

Example:

# read response in chunks of 10 bytes, with a callback function # that dies when receiving the first chunk. This aborts reception # of the entire response. $ua->request( $req, sub { die }, 10 );

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2020-09-27 14:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (142 votes). Check out past polls.

    Notices?