[Chennaipy] url access through proxy

kracekumar ramaraju kracethekingmaker at gmail.com
Sat May 16 09:18:29 CEST 2015


Hi Chandrasekhar

On Sat, May 16, 2015 at 12:36 PM, chandra <chandru2000 at hotmail.com> wrote:

> Dear Team,
>
> working from company's system.  Trying to access an url from a program.
>
>
> from urllib.request import urlopentest_url = urlopen("http://www.reddit.com/" <http://www.reddit.com/>)
>
> Getting following message
>
> urllib.error.HTTPError: HTTP Error 407: Proxy Authentication Required
> Process finished with exit code 1
>
>
>
> or
>
> read_url = urllib2.urlopen(http://www.imdb.com/date)
>
> gives following message
>
> urllib2.HTTPError: HTTP Error 407: Proxy Authentication Required
>
>
>
> Need help on how to access any url through an organization's proxy.   syntax, and a dummy example will be helpful.
>
>
>
Please requests module and since it is well designed and maintained. Have a
look at documentation for proxies [1].

[1]: http://docs.python-requests.org/en/latest/user/advanced/#proxies


> Thanks and regards,
> Chandrasekhar
> 9444380425
>
>
> _______________________________________________
> Chennaipy mailing list
> Chennaipy at python.org
> https://mail.python.org/mailman/listinfo/chennaipy
>
>


-- 

*Thanks & Regardskracekumar"Talk is cheap, show me the code" -- Linus
Torvaldshttp://kracekumar.com <http://kracekumar.com>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chennaipy/attachments/20150516/a7d796e8/attachment-0001.html>


More information about the Chennaipy mailing list