Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: AnyEvent::HTTP not sending ContentLength ?

by bart (Canon)
on Mar 21, 2016 at 08:13 UTC ( #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
Node Status?
node history
Node Type: note [id://1158417]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2020-06-02 02:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (12 votes). Check out past polls.

    Notices?