[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
send-Content-Length-with-empty-post-body.patch
Description: Text Data
- [Bug-wget] Bug Track, Tushar, 2014/10/18
- Re: [Bug-wget] Bug Track, Tim Rühsen, 2014/10/19
- [Bug-wget] Send Content-Length with POST 0 length body,
Matthew Atkinson <=
- Re: [Bug-wget] Send Content-Length with POST 0 length body, Tim Rühsen, 2014/10/19
- Re: [Bug-wget] Send Content-Length with POST 0 length body, Matthew Atkinson, 2014/10/20
- Re: [Bug-wget] Send Content-Length with POST 0 length body, Giuseppe Scrivano, 2014/10/20
- Re: [Bug-wget] Send Content-Length with POST 0 length body, Matthew Atkinson, 2014/10/20
- Re: [Bug-wget] Send Content-Length with POST 0 length body, Tim Rühsen, 2014/10/20
- Re: [Bug-wget] Send Content-Length with POST 0 length body, Matthew Atkinson, 2014/10/21
- Re: [Bug-wget] Send Content-Length with POST 0 length body, Giuseppe Scrivano, 2014/10/21
- Re: [Bug-wget] Send Content-Length with POST 0 length body, Matthew Atkinson, 2014/10/23
- Re: [Bug-wget] Send Content-Length with POST 0 length body, Tim Rühsen, 2014/10/22