File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
libs/network/doc/examples/http Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -23,18 +23,18 @@ Without further ado, the code to do this is as follows:
23
23
int main(int argc, char *argv[]) {
24
24
using namespace boost::network;
25
25
26
- if (argc != 2) {
27
- std::cout << "Usage: " << argv[0] << " [url]" << std::endl;
28
- return 1;
26
+ if (argc != 2) {
27
+ std::cout << "Usage: " << argv[0] << " [url]" << std::endl;
28
+ return 1;
29
29
}
30
30
31
31
http::client client;
32
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;
33
+ request << header("Connection", "close");
34
+ http::client: :response response = client.get(request);
35
+ std::cout << body(response) << std::endl;
36
36
37
- return 0;
37
+ return 0;
38
38
}
39
39
40
40
Running the example
You can’t perform that action at this time.
0 commit comments