[Zope] XML + HTTP == XML-RPC
Tino Wildenhain
tino@wildenhain.de
Mon, 05 May 2003 10:38:25 +0200
Hi Toni,
Toni Andjelkovic wrote:
> Hi,
>
> I'm using Zope 2.6.1 with ZServer listening to port 80. I need
> to receive XML documents via HTTP POST.
>
> Unfortunately, ZPublisher assumes that POST requests with a
> content-type of "text/xml" must be XML-RPC, so it tries to
> parse them accordingly, which fails.
Better if the sender would use different content-type - instead
of plain text: content-type text/xml it could send
"normal" (like file-upload thru form) application/x-www-form-urlencoded.
If its not possible to alter the sender, you can as well use apache2
as a filter in front of your server or at least your methods
and let it set for example content-type: text/plain
HTH
Tino Wildenhain