Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

REST in Perl: sending data with DELETE request?.. See inside

by Doctrin (Beadle)
on Dec 06, 2012 at 10:51 UTC ( #1007530=perlquestion: print w/ replies, xml ) Need Help??
Doctrin has asked for the wisdom of the Perl Monks concerning the following question:

Hello everyone! How do I send data with DELETE request (sic!) ?.. Any ideas about that?.. Thanx in advance UPD: Resolved.
my $content = 'some really important content'; my $HttpReq = HTTP::Request->new( DELETE => $myUrl ); $HttpReq->content_type( 'application/x-www-form-urlencoded' ); $HttpReq->content( $content ); $HttpReq->header( 'Content-Length' => length( $content ) );

Comment on REST in Perl: sending data with DELETE request?.. See inside
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2014-10-23 00:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (122 votes), past polls