[IronPython] Can not use httplib in ironpython beta9?

Mark Rees mark at centurysoftware.com.au
Wed Jul 19 02:35:13 CEST 2006


peter lin wrote:

"It seems the method getaddrinfo() is not currently implemented.
I test another module urllib, which uses  httplib."

I had a similar problem but thanks to our friend Seo Sanghyeon, there is a
possible solution until the IronPython socket module supports
getaddrinfo(). I have documented it at:

http://hex-dump.blogspot.com/2006/07/overriding-ironpythons-built-in.html 
<http://hex-dump.blogspot.com/2006/07/overriding-ironpythons-built-in.html>

And it means the urllib example peter gave will work:

import urllib
data = urllib.urlopen('http://www.google.com').read( 
<http://www.google.com%27%29.read%28>)
print data

Regards

Mark




More information about the Ironpython-users mailing list