Re: CONNECTION TIMED OUT ERROR using urllib2

2008-12-05 Thread svalbard colaco
TED]>wrote: > 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 va

Re: CONNECTION TIMED OUT ERROR using urllib2

2008-12-04 Thread svalbard colaco
:57 AM, rishi pathak <[EMAIL PROTECTED]>wrote: > 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

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