Click to See Complete Forum and Search --> : getting data from site
astle_john
February 22nd, 2007, 10:35 PM
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
anantwakode
February 22nd, 2007, 11:03 PM
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
astle_john
February 22nd, 2007, 11:21 PM
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
GNiewerth
February 23rd, 2007, 08:33 AM
Hello,
if you donīt want to use the MFC you can use the WinINet functions as documented on MSDN (http://msdn2.microsoft.com/en-us/library/aa385473.aspx).
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
practisevoodoo
February 23rd, 2007, 09:42 AM
I personally use cURL, it handles all the things like proxy redirects and everythign for you
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.