[Zope] Problem with POST and text/xml (work-around)
Jonathan (dev101)
dev101 at magma.ca
Mon Jul 13 10:07:27 EDT 2009
Problem: zope interprets POST requests with a Content-Type of "text/xml" to
be xmlrpc requests.
Work-around (requires Apache as a reverse proxy): use Apache to re-write the
Content-Type header of the incoming request before it gets to zope using the
following directives:
SetEnvIfNoCase Content-Type "text/xml" XMLFLAG
RequestHeader set Content-Type "application/xml" env=XMLFLAG
Zope then sees "text/xml" requests as "application/xml" requests and the xml
data can then be accessed via "REQUEST['BODY']".
Thanks to Michael H. for the assistance!
Jonathan
More information about the Zope
mailing list