[Zope] Sending XML straight down to a zope
Chris Withers
chris at simplistix.co.uk
Thu Oct 12 03:35:11 EDT 2006
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...
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
More information about the Zope
mailing list