Total newbie asks:


I have a network program which I would like to emulate and improve.

It basically takes a directory from a text file, adds it to domain name and returns the code (200, 301, 401, 500 etc)

I can do this manually using telnet, but how do I do this using C++?

i.e.

telnet (domain name)
GET HTTP 1.0 (directory)


returns:

website


do I use system calls, or is there a magic C++ code which also does it?