Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.87.MISMATCH!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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.016 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'closed,': 0.09; 'cc:addr :python-list': 0.10; '407': 0.16; 'lowercase': 0.16; 'subject:URL': 0.16; 'subject:internet': 0.16; 'url.': 0.16; 'wrote:': 0.17; 'pfxlen:0': 0.17; 'variables': 0.17; 'variable': 0.20; 'email addr:gmail.com>': 0.20; 'error.': 0.21; 'cc:2**0': 0.23; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'instead.': 0.27; 'message-id:@mail.gmail.com': 0.27; 'environment': 0.29; 'url:non-standard http port': 0.30; 'window': 0.30; 'code': 0.31; 'hi,': 0.33; 'received:google.com': 0.34; 'two': 0.37; 'why': 0.37; 'subject:: ': 0.38; 'gives': 0.39; 'most': 0.61; 'explorer': 0.65; 'internet': 0.71; '2013': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=MNUn1N0jPCiMnBAbWAoEfRu6smmcoPDeSBH528d2y54=; b=vVTjx0ijkBlFHhqgDm3XtXW9LODgZfeLphOBvp17iyteOhjkwuehIU7Qu6Ac6XFEEc Srwal9geX9/MKaKSM24h80Kpzwx/zFZrm7LBzmx/DSCC35RXFXATloIvrphoey145HN8 sXeo4h3z+D4xRTA+Xb5RiQwdA6An8t47RVm9fBcbw6/TIZMZl16TxxlKCQEUmQQnmDpf tVf6uGVGC1RCdJT37f4CCarcLMoI31imi7Q8ow0KbdTPmt607LX1V7MD7oM5lU6x4Wf3 eaES/QDd5+O8DYnTIvSQeS+hzf1JkDI/1nAtxha3egKVEWL0ma8QAv0ws2giPvDhXT0p Q7Dg== MIME-Version: 1.0 X-Received: by 10.194.6.2 with SMTP id w2mr52698917wjw.10.1362648690458; Thu, 07 Mar 2013 01:31:30 -0800 (PST) In-Reply-To: <17e5f19c-57d1-461b-bf1c-59a525922511@googlegroups.com> References: <17e5f19c-57d1-461b-bf1c-59a525922511@googlegroups.com> Date: Thu, 7 Mar 2013 09:31:30 +0000 Subject: Re: Unable to connect to internet URL behind firewall From: Sven To: priyanka.khamankar@gmail.com Content-Type: multipart/alternative; boundary=047d7b5d2e2026096204d7525f8a Cc: python-list 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: 54 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362648692 news.xs4all.nl 6948 [2001:888:2000:d::a6]:60629 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40732 --047d7b5d2e2026096204d7525f8a Content-Type: text/plain; charset=ISO-8859-1 On 6 March 2013 16:28, wrote: > Hi, > > I am using below two approaches to connect to read the content of internet > url. > These two approaches work for me when the internet explorer session is > open. > > When the internet explorer window is closed, below code gives me 407 error. > I have also set the HTTP_PROXY environment variables as > http://proxy-example.com:3128 > >From experience the environment variable name is in lowercase. Try http_proxy instead. Don't ask me why this environment variable is lowercase when most others aren't. -- ./Sven --047d7b5d2e2026096204d7525f8a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On 6 March 2013 16:28, <priyanka.khamankar@gm= ail.com> wrote:
Hi,

I am using below two approaches to connect to read the content of internet = url.
These two approaches work for me when the internet explorer session is open= .

When the internet explorer window is closed, below code gives me 407 error.=
I have also set the HTTP_PROXY environment variables as http://proxy-example.com:3128<= br>

From experience the environ= ment variable name is in lowercase. Try http_proxy instead.

Don't ask me why this environment varia= ble is lowercase when most others aren't.

--
./= Sven
--047d7b5d2e2026096204d7525f8a--