18,363
社区成员




tcp<char> t;
t.connect("127.0.0.1", 80);
t.send("hello");
std::string ret = t.recv();
http h;
h.connect("stackoverflow.com", 80);
http_header header;
header["Connection"] = "keep-alive";
h.get("/questions/ask", header);
http_response resp = h.response();
cout << resp.body() << endl;