Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C++ and the internet. 1

Status
Not open for further replies.

mover50

Programmer
Aug 3, 2004
77
0
0
US
Does C++ have the ability to acquire data from the internet?

Can I generate a URL that will go out and get some data on the internet and then give it to C++ to process like it is reading data from a file?

A simple example would be to do it like the Query statement in Excel.

Thanks,

Kent
 
You can do this. You will have to look into socket programming. Also, if you are going to request a file over the Internet...or more accurately using HTTP you will need to look into the HTTP protocol to see how to construct a GET request on the URL to retrieve the file from the webserver and then process it in your program.

It sounds harder than it is - just research SOCKET programming and eventually the HTTP GET request.

-bitwise
 
There is wget in Linux, and the curl libs can help you out here. You should be able to find the open source code for wget for examples on how it is done.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top