Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #81068

Re: Trouble getting full response content from PATCH request

Date 2014-11-20 21:17 +1100
From Cameron Simpson <cs@zip.com.au>
Subject Re: Trouble getting full response content from PATCH request
References <m4ijak$kmn$1@reader1.panix.com>
Newsgroups comp.lang.python
Message-ID <mailman.16012.1416479675.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 19Nov2014 17:17, John Gordon <gordon@panix.com> wrote:
>In <mailman.15988.1416366536.18130.python-list@python.org> Cameron Simpson <cs@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?

At this point I have no idea; I took things to be SOAP because your SoapUI tool 
worked.

My next suggestion would be to insert a proxy between yourself and the API, 
specificly so that you can run your working SoapUI test through it. Then you 
can get a snapshot of headers and requests that work.

We've used Paros in the past, but a search for "debugging http proxy" on Google 
shows several choices.

Cheers,
Cameron Simpson <cs@zip.com.au>

The ten thousand things
How long do any persist?
Netscape, too, has gone.
- Haiku Error Messages http://www.salonmagazine.com/21st/chal/1998/02/10chal2.html

Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Trouble getting full response content from PATCH request John Gordon <gordon@panix.com> - 2014-11-17 20:26 +0000
  Re: Trouble getting full response content from PATCH request Cameron Simpson <cs@zip.com.au> - 2014-11-19 14:08 +1100
    Re: Trouble getting full response content from PATCH request John Gordon <gordon@panix.com> - 2014-11-19 17:17 +0000
      Re: Trouble getting full response content from PATCH request Cameron Simpson <cs@zip.com.au> - 2014-11-20 21:17 +1100

csiph-web