Urllib2 problem

import urllib2
req = urllib2.Request(‘https://developer.rhino3d.com/’)
response = urllib2.urlopen(req)
print response.info()
html = response.read()
print html

it can work on windows, but can not work on mac.
when i change to html = response.read(1000) , it works. only read a bit of contents.

Anyone can figure it out in mac?