Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: AnyEvent::HTTP not sending ContentLength ?

by bart (Canon)
on Mar 21, 2016 at 08:13 UTC ( [id://1158417]=note: print w/replies, xml ) Need Help??


in reply to AnyEvent::HTTP not sending ContentLength ?

%headerArray, as you use it, is a flat list. What you want to pass is a hash reference, thus:
http_request "PUT" => $url, headers=>\%headerArray, body=>$content, sub {do stuff here};
Note the backslash before the percent sign.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-04-19 06:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found