Re: CONNECTION TIMED OUT ERROR using urllib2

2008-12-05 Thread svalbard colaco
Hi I set my http_proxy and now i get the following error *urllib2.HTTPError: HTTP Error 403: Forbidden ( The ISA Server denied the specified Uniform Resource Locator (URL). * what other variables have to be set ? Regards, sv On Fri, Dec 5, 2008 at 12:47 PM, rishi pathak <[EMAIL PROTECTED]>wro

Re: CONNECTION TIMED OUT ERROR using urllib2

2008-12-04 Thread rishi pathak
Before executing script do export http_proxy=http://:/ On Fri, Dec 5, 2008 at 12:06 PM, svalbard colaco <[EMAIL PROTECTED]>wrote: > Hi rishi, > > Thanks for ur reply, > yes i set the following enviroment variables (FC6 platform) > http_proxy,http_user,http_password > > But i get the same error;

Re: CONNECTION TIMED OUT ERROR using urllib2

2008-12-04 Thread svalbard colaco
Hi rishi, Thanks for ur reply, yes i set the following enviroment variables (FC6 platform) http_proxy,http_user,http_password But i get the same error; Can u tell me which other variables i need to set or am i going wrong in the syntax of these variables? Regards sv On Fri, Dec 5, 2008 at 11:5

Re: CONNECTION TIMED OUT ERROR using urllib2

2008-12-04 Thread rishi pathak
Are you sitting behind a proxy. If so then you have to set proxy for http On Fri, Dec 5, 2008 at 11:47 AM, svalbard colaco <[EMAIL PROTECTED]>wrote: > Hi all > > I have written a small code snippet to open a URL using urllib2 to open a > web page , my python version is 2.4 but i get an urlopen er

CONNECTION TIMED OUT ERROR using urllib2

2008-12-04 Thread svalbard colaco
Hi all I have written a small code snippet to open a URL using urllib2 to open a web page , my python version is 2.4 but i get an urlopen error called connection timed out The following is the code snippet *import urllib2 f = urllib2.urlopen('http://www.google.com/') print f.read(100)* where