bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] Send Content-Length with POST 0 length body


From: Matthew Atkinson
Subject: [Bug-wget] Send Content-Length with POST 0 length body
Date: Sun, 19 Oct 2014 11:27:51 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

Hi

I was looking through the list archives to find something that useful I could contribute to wget and get familiar with the code, I have attached a patch for the following.

Darshit Shah <darnir <at> gmail.com> wrote on 2014-09-05 07:31:34 GMT
>The Content-Length Header is expected by the server in many requests,
>most prominently in a POST Request. However, currently if a POST
>request is sent without any body, Wget does not send any
>Content-Length headers. Some servers seem to dislike this behaviour
>and respond with a 411 Length Required message.
>Patch Wget to always send a Content-Length header when the Request >Type is POST.

Hopefully I can find something less trivial to add or fix in the future, any suggestions, direction or feedback, please let me know.

Thanks,
Matt

Attachment: send-Content-Length-with-empty-post-body.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]