Skip to content

ssl proxy port is hard coded to 443 #643

Open
@sidarthagracias

Description

@sidarthagracias

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions