Open
Description
When using the http client to connect through a http proxy using ssl, I see the cpp rest sdk has the ssl port hard coded to 443, specifically this file
Release/src/http/client/http_client_asio.cpp
const auto &base_uri = m_context->m_http_client->base_uri();
const auto &host = base_uri.host();
request_stream << "CONNECT " << host << ":" << 443 << " HTTP/1.1" << CRLF;
request_stream << "Host: " << host << ":" << 443 << CRLF;
request_stream << "Proxy-Connection: Keep-Alive" << CRLF;
Is there any reason we decided not to pull port information from the base_uri
i.e. int port = base_uri.port();
Metadata
Metadata
Assignees
Labels
No labels