Uploading an image using PUT
noelob
noelob at gmail.com
Wed Jul 23 04:44:13 EDT 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
worked!
Regards,
Noel
More information about the Python-list
mailing list