[erlang-questions] Sometime it's the simple stuff...

Dave Bryson daveb@REDACTED
Thu May 1 15:56:49 CEST 2008


I need to take an IP address in the form of "[{10,0,1,100}]" and  
create an http URL like this:  "http://10.0.1.100/".  I've tried using  
io_lib:format and successfully generated a list.  But, the inets http  
client  doesn't  like the format and complains of a malformed URL.

What's the easiest way to convert an IP to the String version?

Thanks!
Dave



More information about the erlang-questions mailing list