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


Groups > comp.lang.python > #81024

Re: Trouble getting full response content from PATCH request

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <cameron@cskk.homeip.net>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'third-party': 0.04; 'soap': 0.07; 'subject:getting': 0.07; 'expected.': 0.09; 'http': 0.09; 'api': 0.11; 'cc:addr:python-list': 0.11; 'python': 0.11; '>the': 0.16; 'diagnostic': 0.16; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'henry': 0.16; 'message-id:@cskk.homeip.net': 0.16; 'received:211.29': 0.16; 'received:211.29.132': 0.16; 'received:cskk.homeip.net': 0.16; 'received:homeip.net': 0.16; 'received:optusnet.com.au': 0.16; 'received:syd.optusnet.com.au': 0.16; 'simple.': 0.16; 'simpson': 0.16; 'why,': 0.16; 'wrote:': 0.18; 'subject:request': 0.19; 'code,': 0.22; 'cc:addr:python.org': 0.22; 'header:User-Agent:1': 0.23; 'header': 0.24; 'cheers,': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'testing': 0.29; 'patch': 0.29; "i'm": 0.30; 'them?': 0.31; 'supposed': 0.32; 'subject:from': 0.34; 'tool': 0.35; 'test': 0.35; 'but': 0.35; 'received:com.au': 0.36; 'charset:us-ascii': 0.36; 'received:211': 0.38; 'functional': 0.39; 'john': 0.61; 'content- disposition:inline': 0.62; 'containing': 0.69; 'behavior': 0.77; 'to:addr:gordon': 0.84; 'unacceptable': 0.84; 'man.': 0.91; 'passwords,': 0.91; 'subject:response': 0.91
Date Wed, 19 Nov 2014 14:08:46 +1100
From Cameron Simpson <cs@zip.com.au>
To John Gordon <gordon@panix.com>
Subject Re: Trouble getting full response content from PATCH request
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii; format=flowed
Content-Disposition inline
In-Reply-To <m4dll8$69d$1@reader1.panix.com>
User-Agent Mutt/1.5.23 (2014-03-12)
References <m4dll8$69d$1@reader1.panix.com>
X-Optus-CM-Score 0
X-Optus-CM-Analysis v=2.1 cv=dMCfxopb c=1 sm=1 tr=0 a=YuQlxtEQCowy2cfE5kc7TA==:117 a=YuQlxtEQCowy2cfE5kc7TA==:17 a=ZtCCktOnAAAA:8 a=PO7r1zJSAAAA:8 a=J0QyKEt1u0cA:10 a=kj9zAlcOel0A:10 a=vrnE16BAAAAA:8 a=5y4faFyK3SkA:10 a=VUfPOBp7AAAA:8 a=ta-T4cIAo2NAq3EVuhYA:9 a=CjuIK1q_8ugA:10
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.15988.1416366536.18130.python-list@python.org> (permalink)
Lines 26
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1416366536 news.xs4all.nl 2892 [2001:888:2000:d::a6]:41953
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:81024

Show key headers only | View raw


On 17Nov2014 20:26, John Gordon <gordon@panix.com> wrote:
>I'm working with a third-party API and I'm seeing some behavior that I
>can't explain.
>
>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.

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

Glendower: I can call monsters from the vasty deeps.
Hotspur:   Why, so can I, or so can any man. But will they come when you do
           call them?
- Henry IV, part 1

Back to comp.lang.python | Previous | Next — Previous in thread | Next 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