title: How to get all html file with a HTTP GET request using c++?
body: <p>I need to create a c++ console application that query a site in turn to get the html page.</p>
  
  <p>The site is static because when I queried it in the url I see the html file, so I use this code:</p>
  
  <pre><code>send(Socket, "GET /it/ricette/q-torte_forno_statico.html HTTP/1.1\r\nHost: worldrecipes.expo2015.org/\r\nConnection: close\r\n\r\n", strlen("GET /it/ricette/q-torte_forno_statico.html HTTP/1.1\r\nHost: worldrecipes.expo2015.org\r\nConnection: close\r\n\r\n"), 0);
      char buffer[1000000];
      int nDataLength;
      while ((nDataLength = recv(Socket, buffer, 1000000, 0)) &gt; 0) {
          int i = 0;
          while (buffer[i] &gt;= 32 || buffer[i] == '\n' || buffer[i] == '\r') {         
                  cout &lt;&lt; buffer[i];
                  i += 1;
              }
          }
  </code></pre>
  
  <p>It doesn't give me any errors but don't show me the whole html page and every time that I call send the request I get different answers ... why?</p>