We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parenta9b843d commit2ecf2acCopy full SHA for 2ecf2ac
libs/network/doc/examples/http/http_client.rst
@@ -23,18 +23,18 @@ Without further ado, the code to do this is as follows:
23
int main(int argc, char *argv[]) {
24
using namespace boost::network;
25
26
-if (argc != 2) {
27
- std::cout << "Usage: " << argv[0] << " [url]" << std::endl;
28
- return 1;
+if (argc != 2) {
+ std::cout << "Usage: " << argv[0] << " [url]" << std::endl;
+ return 1;
29
}
30
31
http::client client;
32
http::client::request request(argv[1]);
33
-request << header("Connection", "close");
34
-http::client::response response = client.get(request);
35
-std::cout << body(response) << std::endl;
+request << header("Connection", "close");
+http::client::response response = client.get(request);
+std::cout << body(response) << std::endl;
36
37
-return 0;
+return 0;
38
39
40
Running the example