Re: Uploading an image using PUT

2008-07-23 Thread noelob
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 s

Uploading an image using PUT

2008-07-16 Thread noelob
Hi All, Let me start by saying that's I'm relatively new to Python, so please be gentle! I need to up upload a file to a Tomcat web app using httplib. The web app requires the following: Files need to be split into 100kb (102400b) and each file segment loaded using the PUT request. It is also a r