Skip to content

HTTPS proxy support #3035

@Jokser

Description

@Jokser

Hello everyone.

I use Poco HTTP client to work with HTTPS endpoint through an HTTPS proxy but I'm getting timeout errors in such configuration. Looking at HTTP(S)ClientSession source code I see that proxyConnect() method establishes a non-secure HTTP connection with a proxy and proxyRequestPrefix() returns only "http" proxy prefix:

std::string HTTPClientSession::proxyRequestPrefix() const
{
	std::string result("http://");
...
StreamSocket HTTPClientSession::proxyConnect()
{
	ProxyConfig emptyProxyConfig;
	HTTPClientSession proxySession(getProxyHost(), getProxyPort(), emptyProxyConfig);
...

As I can understand Poco doesn't support HTTPS proxy.
Is there any way to modify source code to get HTTPS proxy support in the case when both endpoint and proxy work with the same certificates?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions