title: How to get Webpage’s source code in C++?
body: <p>I am using Microsoft Visual Studio 2010 and C++ language that runs on the console. </p>
  
  <p>I am trying to go to a web page, then get the source of that webpage (What I mean by source is: in Firefox, when you right click, then “View Page Source”) and save it in my computer as a text file, so that I can read that saved file later on.   Can you please give me an example of how to go to a website in c++ and then save the HTML source code in to my computer? I would greatly appreciate any help</p>
  
  <p>And how can you install libcurl?</p>
  
  <p>When I use  <code>#include &lt;curl/curl.h&gt;</code> it says Error: cannot open source file “curl/curl.h.”</p>