Perl Monk, Perl Meditation | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
If I run
And then run LWP and paste something like this into "nc" window I will get in 'lwp' window: So it's detected as success request. But tools like curl/wget report this as error/warning or even retry. And according to RFC http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.4 Content-Length is priority over connecion close. When a message-body is included with a message, the transfer-length of that body is determined by one of the following (in order of precedence):... 3. If a Content-Length header field (section 14.13) is present, its decimal value in OCTETs represents both the entity-length and the transfer-length... 5.By the server closing the connection.Am I missing something? UPD So, not sure if this intended behaviour or no, so I reported a bug https://rt.cpan.org/Public/Bug/Display.html?id=85759 In reply to Should LWP warn about wrong Content-Length? by vsespb
|
|