Uploading an image using PUT

noelob noelob at gmail.com
Wed Jul 23 10:44:13 CEST 2008

Hi All,
I finally figured it out, thanks to Wireshark! I was adding my own
"Content-Length: 50173" header to the request, but httplib appears to
add its own header (also "Content-Length: 50173") which must have been
causing a conflict and making the sever return "HTTP/1.1 400 Bad
Request\r\n". As soon as I removed my own Content-Length header, it


More information about the Python-list mailing list