urlget errors (inet:gethostbyname) on Mac OS X

Carl-Johan Kihlbom div@REDACTED
Tue Nov 18 11:39:43 CET 2003

I've downloaded the urlget module from 
http://www.erlang.org/examples/small_examples/urlget.erl but I can't 
get it working. When I try to download a file by invoking e.g. 
urlget:direct("http://slashdot.org") it returns 

As far as I can tell it tries to resolve the hostname by 
inet:gethostbyname. inet:gethostbyname("slashdot.org") returns 

I'm using Erlang/OTP R9B-0 on Mac OS X 10.3.1. urlget works fine for my 
classmates who are using Windows XP (sadly).

Any ideas on what's wrong?

Best regards,

Carl-Johan Kihlbom
Software Engineering & Management
IT University of Göteborg

More information about the erlang-questions mailing list