You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed support for TLSv1_2 has been added but I'm having issues getting it to work, I've played around with the http::client::options to no avail.
terminate called after throwing an instance of 'std::system_error'
what(): tlsv1 alert internal error
I've determined SNI support was required to resolve this issue and that it was recently added to 0.12.0. I am now wondering if there is a more natural way to perform requests.
@deanberris It seems to be a bit awkward to use having to specify it on a per-request basis, but I do have it working. It would be great to infer the SNI hostname option from the uri and automatically set the TLS extension on servers that require it. I'm not sure how to cleanly handle this, how do you know it's even required before setting up a client and creating a request?
The following seems to be working for me on non-SNI hosts and IP addresses
``http::client::response get(std::string uri) {
http::client::request request(uri);
Activity
bsdunx commentedon Aug 26, 2016
I've determined SNI support was required to resolve this issue and that it was recently added to 0.12.0. I am now wondering if there is a more natural way to perform requests.
deanberris commentedon Aug 26, 2016
Is there anything that needs to be done aside from what's already there in the library @bsdunx?
bsdunx commentedon Aug 26, 2016
@deanberris It seems to be a bit awkward to use having to specify it on a per-request basis, but I do have it working. It would be great to infer the SNI hostname option from the uri and automatically set the TLS extension on servers that require it. I'm not sure how to cleanly handle this, how do you know it's even required before setting up a client and creating a request?
bsdunx commentedon Aug 26, 2016
The following seems to be working for me on non-SNI hosts and IP addresses
``http::client::response get(std::string uri) {
http::client::request request(uri);
}
deanberris commentedon Aug 26, 2016
I agree, this seems to be making for a good case to have per-request options (cc'ing @glynos who's working on redesigning the API for the client).
OK to close this now?
bsdunx commentedon Aug 26, 2016
closing