Mark H Weaver <[email protected]> writes:
>> (http-post "http://www.google.com/")
>>
>> the POST request is sent without the Content-Length header
>
> RFC 2616 makes it clear that the Content-Length header is optional.
Sorry, I should have qualified this statement with "in this case",
i.e. when there's no body. (web client) does add a Content-Length
header when there's a non-empty body.
It should also add a Content-Length header when an empty body is
provided, but it doesn't. I'll fix this soon. Anyway, the work-around
I provided adds a Content-Length header explicitly, so it works around
this problem too.
For the record, I didn't write this code; I'm just fixing it.
Mark