[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libmicrohttpd] Cannot set Content-Length in header
From: |
theantigod |
Subject: |
Re: [libmicrohttpd] Cannot set Content-Length in header |
Date: |
Thu, 24 Oct 2019 16:29:46 -0400 |
In reference to my last email... I am in fact not checking return code and was
using 0.9.65.
You may disregard this chain.
I have moved to 0.9.66 and am adding error checking to confirm it.
Chris
Original Message
From: Christian Grothoff
Sent: Thursday, October 24, 2019 14:36
To: address@hidden
Reply To: libmicrohttpd development and user mailinglist
Subject: Re: [libmicrohttpd] Cannot set Content-Length in header
Hi!
The MHD documentation explicitly says that MHD does NOT allow the
application to set the content-length header at all. You're likely
ignoring an error code you are getting back from the library when trying
to set the content-length header.
Also, not allowing applications to break the HTTP protocol is a feature,
not a bug. (That feature was indeed introduced around the versions you
mention ;-).)
Happy hacking!
Christian
On 10/24/19 6:25 PM, Archit Pandey wrote:
> Hello all,
>
> I'm working on the test-suite of wget2 that uses libmicrohttpd.
>
> I've noticed that on v0.9.66 MHD when I try setting an arbitrary value
> for Content-Length in the HTTP header, MHD changes it to the correct
> value. This behavior is not present on 0.9.59. Additionally, I could not
> find an option to revert to the previous behavior.
>
> Could this be a possible bug?
>
> --
> Archit Pandey
> Junior Year B.Tech.
> Department of Computer Science and Engineering
> National Institute of Technology Karnataka
> Surathkal, India
- [libmicrohttpd] Cannot set Content-Length in header, Archit Pandey, 2019/10/24
- Re: [libmicrohttpd] Cannot set Content-Length in header, Christian Grothoff, 2019/10/24
- Re: [libmicrohttpd] Cannot set Content-Length in header, theantigod, 2019/10/24
- Re: [libmicrohttpd] Cannot set Content-Length in header,
theantigod <=
- Re: [libmicrohttpd] Cannot set Content-Length in header, Tim Rühsen, 2019/10/25
- Re: [libmicrohttpd] Cannot set Content-Length in header, Christian Grothoff, 2019/10/25
- Re: [libmicrohttpd] Cannot set Content-Length in header, Tim Rühsen, 2019/10/25
- Re: [libmicrohttpd] Cannot set Content-Length in header, Christian Grothoff, 2019/10/25
- Re: [libmicrohttpd] Cannot set Content-Length in header, Tim Rühsen, 2019/10/29
- Re: [libmicrohttpd] Cannot set Content-Length in header, Christian Grothoff, 2019/10/29