Search the web
Sign In
New User? Sign Up
zope
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Re: Problem with POST and text/xml (work-around)   Message List  
Reply | Forward Message #184166 of 185485 |
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

_______________________________________________
Zope maillist - Zope@...
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )



Mon Jul 13, 2009 2:07 pm

dev101@...
Send Email Send Email

Forward
Message #184166 of 185485 |
Expand Messages Author Sort by Date

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...
Jonathan (dev101)
dev101@...
Send Email
Jul 13, 2009
2:09 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help