Monday, May 24, 2010

C++ Web Programming?

I am working on an assignment where I have to do some web programming using C++. (parse a web page etc). I have worked in C++ but I have not done web specific programming. Can anyone point me to resources (books, sample codes) which will be helpful in doing C++ web programming.

C++ Web Programming?
If you are just retrieving webpages (i.e. HTTP protocol), you can use libcurl, and this will simplify things A LOT. In fact, you could just use the curl executable as well. Just call the program with the right arguments and have the output redirected to file.





If it's a custom protocol, you are in for sockets programming. This is system specific, so the answer varies depending on whether you are on a *NIX like system, or on Windows. Googling for C++ sockets programming, C sockets programming, C network programming, and so on will get you a number of resources. Beej's guide is commonly cited as a tutorial.
Reply:Microsoft Visual C++ has some class libraries that you can use to do web programming in c++. The following link has a lot of information on the classes that are specific to internet programming:





http://msdn2.microsoft.com/en-us/library...


No comments:

Post a Comment