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


Groups > comp.lang.python > #80533

Re: Communicating with a PHP script (and pretending I'm a browser)

Return-Path <joel.goldstick@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.009
X-Spam-Evidence '*H*': 0.98; '*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; 'for?': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'possible,': 0.19; 'not,': 0.20; '>>>': 0.22; 'cc:addr:gmail.com': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**1': 0.23; 'tend': 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; 'url:mailman': 0.30; 'code': 0.31; 'easier': 0.31; 'larry': 0.31; 'probably': 0.32; 'url:python': 0.33; 'maybe': 0.34; 'subject: (': 0.35; 'subject:with': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'url:listinfo': 0.36; 'url:org': 0.36; 'effort': 0.37; 'implement': 0.38; 'nov': 0.38; 'does': 0.39; '12,': 0.39; 'bad': 0.39; 'url:mail': 0.40; 'subject:skip:C 10': 0.61; 'more': 0.64; 'to:addr:gmail.com': 0.65; 'curl': 0.84; 'route': 0.84; 'technically': 0.84; 'joel': 0.91
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=Za4VYK3zbj5+osJ+owAouNFVmxRqosDhmfFJ8UvhCik=; b=Zl8ZzWb/HFRjcaC4jCZD18i6cKWWn720mMTS2XYztJ8LAeRSWb/W14f3DIHE7HeDLL 7Phlz1eNLEr6PfLYfF/qp3e5M49MeyUOM0bfyK/vEYKreSl4Nq7QxsqZDGhfCDIXtDDR nlNEBCDIlYmSVK67x+lE+2FSS+tjoooT03Rw3Diskgc1C5SMcZnMMCwMsLUvFCA7c23D YFgH6+jafn96No6dzopYC1uUPRblVuW2HyQ/uQLbKOiX9Mx5G2D/2Kxv2wX12u9bxPUb 6t5FmitgUIFskYVfHrsKD1QHqPbh0XYYhvoUJhEB+tWUVJi+znw9r7UYc60Qq8YY/M9b LB8g==
MIME-Version 1.0
X-Received by 10.140.92.2 with SMTP id a2mr50692706qge.51.1415724232445; Tue, 11 Nov 2014 08:43:52 -0800 (PST)
In-Reply-To <CACwCsY5denavfJQYS6x0Lknj-WJW2qfskVdYcuOuJ4P8h0u6gQ@mail.gmail.com>
References <CACwCsY46yYFQwdYdriTSYSvLYF=xs6L2zanN9gofkWkoHvj_fA@mail.gmail.com> <CAPTjJmpR_Yj-rwTHsodDquHuML3vX2vQrjCiseJcV5e+nfZGZg@mail.gmail.com> <CACwCsY5denavfJQYS6x0Lknj-WJW2qfskVdYcuOuJ4P8h0u6gQ@mail.gmail.com>
Date Tue, 11 Nov 2014 11:43:51 -0500
Subject Re: Communicating with a PHP script (and pretending I'm a browser)
From Joel Goldstick <joel.goldstick@gmail.com>
To Larry Martell <larry.martell@gmail.com>
Content-Type text/plain; charset=UTF-8
Cc "python-list@python.org" <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.15671.1415724235.18130.python-list@python.org> (permalink)
Lines 22
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1415724235 news.xs4all.nl 2949 [2001:888:2000:d::a6]:45018
X-Complaints-To abuse@xs4all.nl
Path csiph.com!usenet.pasdenom.info!bete-des-vosges.org!feed.ac-versailles.fr!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Xref csiph.com comp.lang.python:80533

Show key headers only | View raw


On Tue, Nov 11, 2014 at 11:37 AM, Larry Martell <larry.martell@gmail.com> wrote:
> On Tue, Nov 11, 2014 at 10:54 AM, Chris Angelico <rosuav@gmail.com> wrote:
>> On Wed, Nov 12, 2014 at 2:48 AM, Larry Martell <larry.martell@gmail.com> 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.
> --
> https://mail.python.org/mailman/listinfo/python-list

Is your client technically savvy? If not, then what is he paying you
for? It sounds like he may be paying you to implement his bad idea.
Maybe you can outline a better approach that he can buy into

-- 
Joel Goldstick
http://joelgoldstick.com

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


Thread

Re: Communicating with a PHP script (and pretending I'm a browser) Joel Goldstick <joel.goldstick@gmail.com> - 2014-11-11 11:43 -0500

csiph-web