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:
Note the backslash before the percent sign.http_request "PUT" => $url, headers=>\%headerArray, body=>$content, sub {do stuff here};
|
---|
In Section
Seekers of Perl Wisdom