Peter Bengtsson wrote:
xml_content = open('validxmlfile.xml').read()
http = httplib.HTTP("localhost", 8080)
http.putrequest("POST", "/uploadExpenseXML")

That's not really a valid transaction...

My guess is you should be encoding this as a posted file (ie: as if you'd used an <input type="file"/>) and then process the file on the server...



Simplistix - Content Management, Zope & Python Consulting

Zope maillist  -
**   No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to