ForeverLearning has asked for the wisdom of the Perl Monks concerning the following question:
my %headerArray = ( "Content-Length"=>2345 ); http_request "PUT" => $url, headers=>%headerArray, body=>$content, sub {do stuff here};
The problem I'm having is that the request goes through and the other side says "411. The request must be chunked or have a content length." The content size definitley matches the size of the body being sent.
I can't see a simple way to turn on tracing in AnyEvent::HTTP either, which isn't helping my debugging.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: AnyEvent::HTTP not sending ContentLength ?
by 1nickt (Canon) on Mar 20, 2016 at 19:29 UTC | |
by ForeverLearning (Novice) on Mar 20, 2016 at 19:32 UTC | |
|
Re: AnyEvent::HTTP not sending ContentLength ?
by NetWallah (Canon) on Mar 20, 2016 at 19:27 UTC | |
|
Re: AnyEvent::HTTP not sending ContentLength ?
by bart (Canon) on Mar 21, 2016 at 08:13 UTC |