Re: [Zope] Sending XML straight down to a zope

2006-10-13 Thread Paul Winkler
On Thu, Oct 12, 2006 at 09:16:30PM +0200, Dieter Maurer wrote: Chris Withers wrote at 2006-10-12 08:35 +0100: Peter Bengtsson wrote: xml_content = open('validxmlfile.xml').read() http = httplib.HTTP(localhost, 8080) http.putrequest(POST, /uploadExpenseXML) That's not really a valid

Re: [Zope] Sending XML straight down to a zope

2006-10-12 Thread Chris Withers
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

Re: [Zope] Sending XML straight down to a zope

2006-10-12 Thread Peter Bengtsson
Chris Withers wrote: 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... Perhaps I got my pseudo syntax code wrong. My point is still valid since Zope

Re: [Zope] Sending XML straight down to a zope

2006-10-12 Thread Dieter Maurer
Chris Withers wrote at 2006-10-12 08:35 +0100: 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... Why not? The real problem is that Zope wrongfully

[Zope] Sending XML straight down to a zope

2006-10-11 Thread Peter Bengtsson
I'm trying to send an XML straight into Zope without specifying it as a parameter and with a Content-Length. It seems that Zope's mapply function or whatever it's called digests the raw http body and tries to turn it into parameters? Here's the code on the Zope server (uploadExpenseXML()): def