Subject: | IO::Lambda::HTTP does not seem to be able to handle POST requests |
When trying to use IO::Lambda::HTTP to POST requests at urls, i only
get error messages back. Lighttpd claims "400 malformed request", while
google.com claims "411 content-length required.
Looking at things with wireshark gave this:
LWP::Useragent :
..)..m..7..=..E....y@........jJ}Mc@..P|x.@....P...c...POST /
HTTP/1.1..TE: deflate,gzip;q=0.3..Connection: TE, close..Host:
google.com..User-Agent: AssetManager/1.0..Content-Length: 5..Content-
Type: application/x-www-form-urlencoded....id=34
IO::Lambda::HTTP :
..)..m..7..=..E.....@........jJ}Mc@..P.b./.5q.P...c...POST http://
google.com..User-Agent: AssetManager/1.0..Content-Length: 5..Content-
Type: application/x-www-form-urlencoded....id=34
From that it seems that it simply omits the entire HTTP type header up
until the Host: directive.