Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; '21,': 0.07; 'subject:How': 0.09; 'python': 0.09; 'fetch': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'sep': 0.09; 'do,': 0.15; 'jerry': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:user': 0.16; 'wrote:': 0.17; 'thanks,': 0.18; '(or': 0.18; 'trying': 0.21; 'machine.': 0.22; "user's": 0.22; 'third-party': 0.23; 'am,': 0.27; 'header:X -Complaints-To:1': 0.28; "i'm": 0.29; 'fri,': 0.30; 'url:home': 0.33; 'to:addr:python-list': 0.33; 'third': 0.34; 'remote': 0.35; 'subject:?': 0.35; 'received:org': 0.36; 'but': 0.36; 'wanted': 0.36; 'client': 0.36; 'should': 0.36; 'charset:us-ascii': 0.36; 'possible': 0.37; 'uses': 0.37; 'rather': 0.37; 'far': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'application': 0.40; 'skip:" 10': 0.40; 'header:Received:5': 0.40; 'your': 0.60; 'matter': 0.61; 'details': 0.63; 'direct': 0.69; 'programme': 0.69; 'avoid.': 0.84; 'dennis': 0.91; 'received:108': 0.91; 'hill': 0.96 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: How to apply the user's HTML environment in a Python programme? Date: Fri, 21 Sep 2012 16:09:12 -0400 Organization: > Bestiaria Support Staff < References: <4382e132-4eb5-4733-9fed-535e704f2175@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 108.79.219.15 X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES 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: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1348258203 news.xs4all.nl 6946 [2001:888:2000:d::a6]:51377 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:29671 On Fri, 21 Sep 2012 09:36:08 -0400, Jerry Hill declaimed the following in gmane.comp.python.general: > On Fri, Sep 21, 2012 at 9:31 AM, BobAalsma wrote: > > Thanks, Joel, yes, but as far as I'm aware these would all require the Python programme to have the user's username and password (or "credentials"), which I wanted to avoid. > > No matter what you do, your web service is going to have to > authenticate with the remote web site. The details of that > authentication are going to vary with each remote web site you want to > connect to. Hmmm, convoluted but presuming the "login" third party site uses cookies... Would it be possible to use Javascript on the client "copy" the HTML from the third-party and then transmit it to the application rather than having the application trying to do a direct fetch given just the URL? This should keep the authentication local to the client machine. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/