I'm trying to auto-download any website's source code by entering its URL
I did some search on Google and the forum
only found this AU3
but its a AU3 file and I do not understand it at all
does anyone has a suggestion for me?
any website that I should check? or code that anyone worked on?

btw if anyone is so kind to post his code
I'll be asking "a lot" of questions

6 Years
Discussion Span
Last Post by Stefano Mtangoo

To do that with C++, you need something like libcurl (http://curl.haxx.se/libcurl/).

That is what OP need. But be warned of this:

There's basically only one thing to keep in mind when using C++ instead of C when interfacing libcurl:

The callbacks CANNOT be non-static class member functions

Example C++ code:

class AClass {   static size_t write_data(void *ptr, size_t size, size_t nmemb,   void *ourpointer)   {   /* do what you want with the data */   }  }


Edited by Stefano Mtangoo: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.