resp = testapp.post('/my_earl', json_payload,
content_type='application/xml', expect_errors=False)
appears to do the trick
On Wednesday, March 25, 2015 at 10:41:48 AM UTC-4, Robert Daniels wrote:
>
> I'm testing software that tests server to server communication sending and
> receiving XML.
>
> I am sending XML documents in a json formatted POST, that contain not just
> the xml but also session info.
>
> The receiving endpoint expects content type = application/xml, however
> sending via the post_json method hard codes the content type to
> application/json.
>
> Would be nice to be able to pass in content_type=xxxx as an option in
> testapp.post_json( )
>
> Which TestApp API should I use as a substitute for this?
>
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.