Path: csiph.com!usenet.pasdenom.info!gegeweb.org!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4a.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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'output': 0.05; 'string': 0.09; 'agree,': 0.09; 'back.': 0.09; 'subject:script': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'translation': 0.12; 'once.': 0.16; 'subject:PHP': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'possible,': 0.19; 'cc:addr:python.org': 0.22; 'tend': 0.24; 'cc:2**0': 0.24; 'script': 0.25; 'post': 0.26; 'header:In-Reply- To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; 'code': 0.31; '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; 'does': 0.39; '12,': 0.39; 'subject:skip:C 10': 0.61; 'more': 0.64; 'to:addr:gmail.com': 0.65; 'curl': 0.84; 'route': 0.84 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:to :cc:content-type; bh=HB+CcXaAs/9Hfnf7MvRDF969JywNpG8Ne/qRWje5iXA=; b=G2F6n3CDRQlzLw/4ylkdfa74vMEAqZMT6r0tVuaI0ZTnX1og194Lhw8xg/iiIjyB+R wCcXWa1Cp3AD4bngavM8S5giW+JisF2QPiAflA1OGDv2f6WyUKTKigxLcMhzYVbbKuNg iC9lOzhNPZSzBjUfFreWHaDhYQ8+Gyno9EbChsXdRcwvaVo2zWluntfED9RbT3CUZ2Wr VSd0OSc3B/v0RDEe4zxv510OcDj1CLYBdg6XEJn4h++glwWN2ZBTXDRxQJx38cS/m5GC EGxFykG3LjiMiNk2PYTfKF1PRhxYwv4aOKqHv4O5Mwegvt6VXvcv8RB/o/SVvzNu/qcf 1Sxw== MIME-Version: 1.0 X-Received: by 10.180.75.38 with SMTP id z6mr41732080wiv.81.1415723839037; Tue, 11 Nov 2014 08:37:19 -0800 (PST) In-Reply-To: References: Date: Tue, 11 Nov 2014 11:37:18 -0500 Subject: Re: Communicating with a PHP script (and pretending I'm a browser) From: Larry Martell To: Chris Angelico Content-Type: text/plain; charset=UTF-8 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1415723840 news.xs4all.nl 2857 [2001:888:2000:d::a6]:40486 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:80532 On Tue, Nov 11, 2014 at 10:54 AM, Chris Angelico wrote: > 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. I would tend to agree, but that's not what my client wants. Also, it's A LOT of PHP code so it does make some small amount of sense.