Created
September 25, 2012 12:13
-
-
Save deanberris/3781421 to your computer and use it in GitHub Desktop.
Request Configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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