This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author apmatthews
Recipients apmatthews
Date 2019-09-30.20:24:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1569875041.02.0.374553203578.issue38330@roundup.psfhosted.org>
In-reply-to
Content
RFC 7230 3.3.2 states "A sender MUST NOT send a Content-Length header field in any message that contains a Transfer-Encoding header field."

When trying to perform a chunked request:

import httplib
http = httplib.HTTPSConnection('google.com')
http.request("POST", '/', None, {'Content-Type': 'text/plain',
                                 'Transfer-Encoding': 'chunked'})

Resulting headers include:

Content-Length: 0
Transfer-Encoding: chunked

The receiving server should ignore the Content-Length in this case but some versions of IIS don't and consequently fail to accept the chunks that follow.
History
Date User Action Args
2019-09-30 20:24:01apmatthewssetrecipients: + apmatthews
2019-09-30 20:24:01apmatthewssetmessageid: <1569875041.02.0.374553203578.issue38330@roundup.psfhosted.org>
2019-09-30 20:24:00apmatthewslinkissue38330 messages
2019-09-30 20:24:00apmatthewscreate