tags:

views:

105

answers:

2

I have following code.

 req = urllib2.Request(url,'',txheaders)
 f = urllib2.urlopen(req)
 data = f.read()
 f.close()

In the above code, the read function takes 1-2 minutes when response is of 58KB. How can I make this faster.

+2  A: 

Probably get a better internet connection.

S.Mark
@S.Mark internet connection speed has no issue. when i open that url in browser, it open in just 1 second.
@user283405, is that taking that long on certain site or every site?
S.Mark
@S.Mark no the URL with https protocol. i have tried with other URLs but no problem with others.
@user283405, can I know that URL? if that is accessible by anyone
S.Mark
A: 

i have some problems with that too. there's nothing to do with internet speed.

leonardopessoa