Trouble getting full response content from PATCH request

John Gordon gordon at panix.com
Wed Nov 19 18:17:08 CET 2014


In <mailman.15988.1416366536.18130.python-list at python.org> Cameron Simpson <cs at zip.com.au> writes:

> >The API uses the HTTP PATCH operation to set user passwords, and in
> >case of unacceptable passwords, the response is supposed to be an HTML
> >document containing a diagnostic message in the <body> tag.
> >
> >When I submit my test data via a functional testing tool (SoapUI), it
> >behaves as expected.
> >
> >However, when I submit test data from Python code, the response content
> >consists only of the diagnostic message, with no enclosing <html> or <body>
> >tags.
> [...]

> You need a "SOAPAction: " HTTP header with SOAP requests. It may be that 
> simple.

The API does provide some SOAP calls, but the specific call I'm using is
REST.  Is there a corresponding header I should use?

Thanks.

-- 
John Gordon         Imagine what it must be like for a real medical doctor to
gordon at panix.com    watch 'House', or a real serial killer to watch 'Dexter'.




More information about the Python-list mailing list