You are here:

C++/URL check


How are you?
I'm trying to write a program that, among other things, needs to validate a website. Basically I need to know if a user-entered website exists or not. I don't know where to start. I was wondering if you could give me a lead with this. How to do this using C/C++ Thank you so much!

Hi dear Andres!

Am doing good!
 Use the ping Command which is available in windows , if you got the response from the given hostname which means the site is valid!
use the following program for a sample.

Use this for additional reference !
To query the DNS Server use the following resource.

Hope it will help you !
Get back to me if you require more support.
Thanks and Regards!
Prince M. Premnath


All Answers

Answers by Expert:

Ask Experts


Prince M. Premnath


Years of research in C/C++ Will bring you all facts regarding , OOPS , SVGA , MOUSE , BIOS , IVT , Feel free to query me :-)


More than 5 years


©2016 All rights reserved.