-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Description
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?
Alex-Burmak