Link to home
Start Free TrialLog in
Avatar of dcrudo
dcrudo

asked on

How to retrieve a variable from a webpage ?

Dear Experts!

I need a function, that can retrieve a value from a web page. The purpose of this is to retrieve the external IP address for a machine, querying
a web page, basically, once called, the webpage will return the ip address of the client.

Any idea on how we could do this?

Thank you in advance!

Dave.
Avatar of Greybird
Greybird

Use the IdHTTP component, and its Get method. When you have the page in an AnsiString, it's easy to get the variable you need.
ASKER CERTIFIED SOLUTION
Avatar of Greybird
Greybird

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dcrudo

ASKER

works perfectly!!! Thx a lot!