Re: problem with urllib

2009-03-31 Thread venkat sanaka
Hello everyone I am happy that my code finally worked and got the expected result.i suppose the problem is with python 3 becoz i wrote the similar code with python 2.5 without explicitly mentioning the proxy and it worked.It has taken the system's proxy settings as given in the documentation.Thanks

Re: problem with urllib

2009-03-31 Thread venkat sanaka
Thanks for ur suggestions Terry.These are really helpful for a newbie like me in python programming. Regards Venkat On Wed, Apr 1, 2009 at 5:59 AM, Terry Reedy wrote: > venkat sanaka wrote: > >> This was the code i executed. >> >> >>> proxies={'http':'10.1.2.21:9090 '} >

Re: problem with urllib

2009-03-31 Thread Terry Reedy
venkat sanaka wrote: This was the code i executed. >>> proxies={'http':'10.1.2.21:9090 '} >>> opener = urllib.request.FancyURLopener(proxies) >>> f = opener.open("http://www.python.org";) Exception AttributeError: AttributeError("'FancyURLopener' object has no attribu

Re: problem with urllib

2009-03-31 Thread venkat sanaka
The correct one was 10.1.2.21:9090.In my code i tried with all the possible ways and end up in getting no result.sry for that. For more clarity I will give proxy settings in mozilla as: Http proxy:10.1.2.21 port:9090 Regards venkat On Wed, Apr 1, 2009 at 5:37 AM, Emile van Sebille

Re: problem with urllib

2009-03-31 Thread Emile van Sebille
venkat sanaka wrote: Yeah I did i was getting the same error as i got without using http in the url. In your first message you say you need to use proxy of format 10.1.2.21:8080 -- but in your code example you've written and the traceback shows '10.1.2.21:9090 ' Whi

Re: problem with urllib

2009-03-31 Thread venkat sanaka
Yeah I did i was getting the same error as i got without using http in the url. Regards venkat. On Wed, Apr 1, 2009 at 4:46 AM, Chris Rebert wrote: > > On Wed, Apr 1, 2009 at 4:35 AM, Chris Rebert wrote: > >> > >> 2009/3/31 venkat sanaka : > >> > hii everyone > >> > > >> > I am new to python p

Re: problem with urllib

2009-03-31 Thread Chris Rebert
> On Wed, Apr 1, 2009 at 4:35 AM, Chris Rebert wrote: >> >> 2009/3/31 venkat sanaka : >> > hii everyone >> > >> > I am new to python programming.And i started implementing a http client >> > using urllib in which >> > i was facing a problem with proxy support.i was behind a proxy server >> > and >

Re: problem with urllib

2009-03-31 Thread venkat sanaka
This was the code i executed. >>> proxies={'http':'10.1.2.21:9090'} >>> opener = urllib.request.FancyURLopener(proxies) >>> f = opener.open("http://www.python.org";) Exception AttributeError: AttributeError("'FancyURLopener' object has no attribute 'tempcache'",) in > ignored Traceback (most rece

Re: problem with urllib

2009-03-31 Thread Chris Rebert
2009/3/31 venkat sanaka : > hii everyone > > I am new to python programming.And i started implementing a http client > using urllib in which > i was facing a problem with proxy support.i was behind a proxy server and > need to use > proxy of format 10.1.2.21:8080 to connect to internet.when i used

problem with urllib

2009-03-31 Thread venkat sanaka
hii everyone I am new to python programming.And i started implementing a http client using urllib in which i was facing a problem with proxy support.i was behind a proxy server and need to use proxy of format 10.1.2.21:8080 to connect to internet.when i used this with proxyhandler of urllib i got