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
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
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
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
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