Abdandon the template RestBasicClient.

This commit is contained in:
Chunting Gu
2019-02-01 14:50:06 +08:00
parent 360d09508e
commit ae9d4efcf1
9 changed files with 258 additions and 142 deletions
+3 -3
View File
@@ -27,13 +27,13 @@ int main(int argc, char* argv[]) {
request.set_host(host); // Leave port to default value.
request.Make();
webcc::HttpSslClient client;
// Verify the certificate of the peer or not.
// See HttpSslClient::Request() for more details.
bool ssl_verify = false;
if (client.Request(request, ssl_verify)) {
webcc::HttpSslClient client(ssl_verify);
if (client.Request(request)) {
std::cout << client.response()->content() << std::endl;
} else {
std::cout << webcc::DescribeError(client.error());