|
-
February 22nd, 2007, 11:35 PM
#1
getting data from site
i want to read the data from site.is it possible in c++
if possible please tell me solution how it is possible.
show me some examples.
in java we have URL class is it in c++
thank u ,inadvance
astle
-
February 23rd, 2007, 12:03 AM
#2
Re: getting data from site
hi,
It's is possible in c++ , but not directly you need to do socket/network programming for that !
by the way which platform you are using I mean Windows or *Nix
in vc++ you can use CHttpConnection and related classes for fetching information from httpserver.
look in to the link for more information on how to use.
http://www.codeproject.com/internet/getwebfile.asp
-Anant
"Devise the simplest possible solution that solves the problems"
-
February 23rd, 2007, 12:21 AM
#3
Re: getting data from site
thank u for ue reply
iam using windows.
but need only in c++
but thank u for giving me some idea .
any example in c++
thank u
astle
-
February 23rd, 2007, 09:33 AM
#4
Re: getting data from site
Hello,
if you don´t want to use the MFC you can use the WinINet functions as documented on MSDN.
Using plain c/c++ and the standard libraries will be really pain in the *** because you have to use sockets and implement the FTP/HTTP protocol on your own.
Regards,
Guido
- Guido
-
February 23rd, 2007, 10:42 AM
#5
Re: getting data from site
I personally use cURL, it handles all the things like proxy redirects and everythign for you
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|