Skip to content

Instantly share code, notes, and snippets.

@deanberris
Created September 25, 2012 12:13
Show Gist options
  • Save deanberris/3781421 to your computer and use it in GitHub Desktop.
Save deanberris/3781421 to your computer and use it in GitHub Desktop.
Request Configuration
namespace http = network::http;
http::request_options ro;
ro.timeout(std::chrono::duration(30))
.client_cert("/tmp/my_cert.pem")
.accept_transfer_encoding({http::transfer_encodings::gzip, http::transfer_encodings::plain});
auto response = client.get("https://www.example.com/foo", ro);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment