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. I'd be grateful for suggestions on how to solve this elegantly. Thanks, -- Toni Andjelkovic <toni@soth.at>
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
On Sunday 04 May 2003 11:08 pm, 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.
I'd be grateful for suggestions on how to solve this elegantly.
Do you need to support xmlrpc as well? If not, just hack your source to remove that special case. -- Toby Dickenson http://www.geminidataloggers.com/people/tdickenson
participants (3)
-
Tino Wildenhain -
Toby Dickenson -
Toni Andjelkovic