Re: to get the IP through a URL

Giganews Newsgroups
Subject: Re: to get the IP through a URL
Posted by:  Remy Lebeau (Indy Team) (no.spam@no.spam.com)
Date: Mon, 9 Oct 2006

"Alexandre" <alexandrepires20…@yahoo.com.br> wrote in message
news:0DA9B603E70AE340alexandrepires20…@yahoo.com.br...

> I have a URL and I need to know the IP address of this
> URL, how to make this with indy components.

Look at the TIdDNSResolver component.  Pass it only the domain portion of
the URL, not the entire URL.  So, if you have a URL of
http://www.someserver.com/folder/whatever", you would pass only
"www.someserver.com" to TIdDNSResolver.  You can use the TIdURI class to
break up a URL into its individual pieces.

Gambit

Replies

None

In response to

to get the IP through a URL posted by Alexandre on Mon, 9 Oct 2006