Path: csiph.com!usenet.pasdenom.info!gegeweb.org!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'output': 0.05; 'string': 0.09; 'back.': 0.09; 'subject:script': 0.09; 'cc:addr:python- list': 0.11; 'python': 0.11; 'translation': 0.12; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'once.': 0.16; 'subject:PHP': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'possible,': 0.19; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'script': 0.25; 'post': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'easier': 0.31; 'larry': 0.31; 'probably': 0.32; 'subject: (': 0.35; 'subject:with': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'effort': 0.37; 'nov': 0.38; '12,': 0.39; 'subject:skip:C 10': 0.61; 'more': 0.64; 'curl': 0.84; 'route': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=kssr424ySnKVJWcicd50bIV33GVp0hvi51IohlWPIfA=; b=ij42Zw5m+vAjTXmdZ4orB2YkyDLIFc3K68z7sm3+x3Aq8IVQTn4VGogWQcuVmjSu6f LU+7XbZxvfKw7121krJZ3pokpbGocph0Snd3DzEhBzKOO7iT2N+tykFiK10sb71CNMt5 Ee9XX0G8d6/w1fM4yO+2Qetjych4hrfYkAuAMKg29PEYgMMBIaoOgbssE0P0JAGnpewm n2z97SYjYutv3YAzuGu9bDBhIkUbsO4VWVLw1ebr2TQqltB2ryXkyAUI1sD/TJs0rZST 0TZrhztfNHY3gzCJduWCcxrFE9YI7D1cxOHsKXAuT25IP+ZONsxoBMf5pgu0Kq4hdWnB rkSg== MIME-Version: 1.0 X-Received: by 10.42.37.138 with SMTP id y10mr42461818icd.26.1415721292633; Tue, 11 Nov 2014 07:54:52 -0800 (PST) In-Reply-To: References: Date: Wed, 12 Nov 2014 02:54:52 +1100 Subject: Re: Communicating with a PHP script (and pretending I'm a browser) From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1415721300 news.xs4all.nl 2839 [2001:888:2000:d::a6]:60344 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:80530 On Wed, Nov 12, 2014 at 2:48 AM, Larry Martell wrote: > Is there some way python can communicate like curl ... it needs to > send the request string in the body of a POST request to the URL that > will route to the PHP script and get the output back. That is possible, but probably more effort than it's worth. It'll likely be easier to just do the translation all at once. ChrisA