Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #80540
| Path | csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <larry.martell@gmail.com> |
| 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; 'python.': 0.02; 'python,': 0.02; 'django.': 0.05; 'output': 0.05; 'frontend': 0.07; 'string': 0.09; 'agree,': 0.09; 'back.': 0.09; 'subject:script': 0.09; "they've": 0.09; 'python': 0.11; 'translation': 0.12; 'big,': 0.16; 'once.': 0.16; 'redo': 0.16; 'shop.': 0.16; 'subject:PHP': 0.16; 'for?': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'wed,': 0.18; 'app': 0.19; 'possible,': 0.19; 'later': 0.20; 'not,': 0.20; '>>>': 0.22; 'to:name:python-list@python.org': 0.22; '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; 'asked': 0.31; 'went': 0.31; 'code': 0.31; 'easier': 0.31; 'that.': 0.31; '>>>>': 0.31; 'app.': 0.31; 'larry': 0.31; 'ok.': 0.31; 'probably': 0.32; 'another': 0.32; 'maybe': 0.34; 'could': 0.34; 'subject: (': 0.35; 'subject:with': 0.35; 'knows': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'google': 0.35; 'there': 0.35; 'bought': 0.36; 'should': 0.36; 'effort': 0.37; 'wrong': 0.37; 'project': 0.37; 'implement': 0.38; 'manager': 0.38; 'nov': 0.38; 'to:addr:python-list': 0.38; 'does': 0.39; '12,': 0.39; 'bad': 0.39; 'to:addr:python.org': 0.39; 'days': 0.60; 'eventually': 0.60; 'tag': 0.61; 'subject:skip:C 10': 0.61; 'new': 0.61; 'took': 0.61; 'back': 0.62; 'more': 0.64; '100%': 0.77; '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 :content-type; bh=WVreBA31fnU8KKR2WoZHzS09oZN7UC2lIKrcMex9bkw=; b=en8ujWMcxOKjVsu+JNrn/FbfvczYrM+06TMvCEna11bympSYJ2HyS/r8TujXbVBGHn DjpA/Kj7jnjPLZKZT+wpS7yfuKfL1jpp3HwCPA4jpuv/PvDhR9JM5tVjvWWJDbqEtqfZ xg545Yd0VL+9DqwjIaCquR1L0MawzXQ7oI7gapvyCh4CFHWhTavVpxSZpmRVov7k4+9t QbI6cLLofXXrr0J0SN4sfIBvl2xCCI0VaKQxl7O608AlvOxSi/qMUnGiwWMtyyTnQB8A uZYAIxjbODCJe8KrQlZdMtQgXEHgiCDveZj/IOumMtg7sNRTsqfrUVnxbJm3N04/YUyh yT/Q== |
| MIME-Version | 1.0 |
| X-Received | by 10.180.75.38 with SMTP id z6mr42140001wiv.81.1415727048746; Tue, 11 Nov 2014 09:30:48 -0800 (PST) |
| In-Reply-To | <CAPM-O+z9wdFcO7Hj=oKh-M1Cht-Wt35UWxavEPPbGxNGHOxpqA@mail.gmail.com> |
| References | <CACwCsY46yYFQwdYdriTSYSvLYF=xs6L2zanN9gofkWkoHvj_fA@mail.gmail.com> <CAPTjJmpR_Yj-rwTHsodDquHuML3vX2vQrjCiseJcV5e+nfZGZg@mail.gmail.com> <CACwCsY5denavfJQYS6x0Lknj-WJW2qfskVdYcuOuJ4P8h0u6gQ@mail.gmail.com> <CAPM-O+z9wdFcO7Hj=oKh-M1Cht-Wt35UWxavEPPbGxNGHOxpqA@mail.gmail.com> |
| Date | Tue, 11 Nov 2014 12:30:48 -0500 |
| Subject | Re: Communicating with a PHP script (and pretending I'm a browser) |
| From | Larry Martell <larry.martell@gmail.com> |
| To | "python-list@python.org" <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 <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.15678.1415727055.18130.python-list@python.org> (permalink) |
| Lines | 31 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1415727055 news.xs4all.nl 2829 [2001:888:2000:d::a6]:46541 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:80540 |
Show key headers only | View raw
On Tue, Nov 11, 2014 at 11:43 AM, Joel Goldstick <joel.goldstick@gmail.com> wrote: > 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. > > 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 They are technically savvy. They are a 100% PHP shop. They have a big, complicated app that they've been working on for 10 years. No one there knows python or django. They want to put some new frontends on their app. I was bought in for another project (involving Google Tag Manager and Google Analytics), which I completed. Then they asked me about this project. I told them they should redo their app in Flask or Django. It took some cajoling, but they eventually said OK. But then a few days later they said before I went off and reimplemented everything in python, could I just build the new frontend and call the existing PHP code. This would enable them to get the new frontends out to their clients sooner, and then I could go back and port the PHP to python. I don't see what is so wrong with that.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Communicating with a PHP script (and pretending I'm a browser) Larry Martell <larry.martell@gmail.com> - 2014-11-11 12:30 -0500
csiph-web