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

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

by rhesa (Vicar)
on May 10, 2008 at 14:16 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://685877]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-03-28 13:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found