[issue12327] in HTTPConnection the are len(body) and TypeError catch exception to detect if body is file like object, this hack do work with StringIO object

Senthil Kumaran report at bugs.python.org
Mon Jun 20 10:36:53 CEST 2011

Senthil Kumaran <senthil at uthcode.com> added the comment:

Hello Stephane,

> I use HTTPConnection to simulate Apple Finder WebDAV client.  When
> this WebDAV client do PUT request, it transmit data in chunked
> encoding mode and not set Content-Length HTTP field.
> Do you understand my context ?

Is the server at fault in not returning Content-Length?

Can you provide a full working snippet which demonstrates the bug you
are facing? I fear, if I am lacking some information to completely
determine what needs to be fixed (I understand the code change you
suggested, but also need to know why and under what practical
situation would code flow through that).


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list