New In c and c++. Downloading data from a server
-
Hi. I am very new to C and C++, what is the best way of downloading data from a HTTP server, meaning, how to i download the HTML from http://www.google.com?
-
Hi. I am very new to C and C++, what is the best way of downloading data from a HTTP server, meaning, how to i download the HTML from http://www.google.com?
Have a look at the MFC classes CHttpFile and CHttpConnection ... also, look at this article on CP : Retrieving a file via. HTTP[^] Max.
Watched code never compiles.
-
Hi. I am very new to C and C++, what is the best way of downloading data from a HTTP server, meaning, how to i download the HTML from http://www.google.com?
One way would be with
URLDownloadToFile()
. Other ways exist, too."One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
-
Have a look at the MFC classes CHttpFile and CHttpConnection ... also, look at this article on CP : Retrieving a file via. HTTP[^] Max.
Watched code never compiles.
Hi. i am developing to a linux device, is there any way without MFC?
-
Hi. i am developing to a linux device, is there any way without MFC?
Well, since it's a Windows development site, I assume you were developing for Windows. on linux, yeah, there's probably something that does it; but it's probably more complicated. a quick googling returns this : http://curl.haxx.se/[^] or this : http://rosettacode.org/wiki/Web_scraping[^] just to give you a good start. good luck.
Watched code never compiles.
-
Hi. I am very new to C and C++, what is the best way of downloading data from a HTTP server, meaning, how to i download the HTML from http://www.google.com?
I'd recommend cURL, it's got an interface only it's programmer could love but it's actually fairly easy to do what you want to do. Run, don't walk to http://curl.haxx.se/[^] and download it. Actually if you're using Linux it's probably available as a package in your distro. Cheers, Ash
-
Hi. I am very new to C and C++, what is the best way of downloading data from a HTTP server, meaning, how to i download the HTML from http://www.google.com?
very simple and good article for achieving your goal :- AmHttpUtilities[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You
-
very simple and good article for achieving your goal :- AmHttpUtilities[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You
thanks for the help