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
Printable View
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
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
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
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
I personally use cURL, it handles all the things like proxy redirects and everythign for you