http://qs321.pair.com?node_id=1158417


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.