简体   繁体   English

与HTTPS Web代理的通信如何工作?

[英]How does the communication with an HTTPS Web Proxy Work?

I wish to setup an HTTPS proxy and have HTTP clients send requests securely to the proxy. 我希望设置一个HTTPS代理,让HTTP客户端安全地向代理发送请求。 For example, a browser can initiate a HTTP GET request which should be an encrypted request to the proxy and the proxy then removes the encryption and then passes the request to the end-site. 例如,浏览器可以发起HTTP GET请求,该请求应该是对代理的加密请求,然后代理会删除加密,然后将请求传递给终端站点。 Squid proxy can be set up to work like this (info here ). Squid代理可以设置为像这样工作(信息在这里 )。

I have set up such a HTTPS enabled proxy. 我已经设置了这样一个支持HTTPS的代理。 But I am unable to write my own HTTP clients to work with it. 但我无法编写自己的HTTP客户端来使用它。 The same link above mentions that chrome is the only browser that supports such a proxy. 上面的相同链接提到chrome是唯一支持此类代理的浏览器。 I tested Chrome and it was able to work with such an HTTPS proxy. 我测试了Chrome,它能够使用这样的HTTPS代理。

I wish to gain an understanding of how such a proxy works so that I can write my own HTTP clients. 我希望了解这样的代理如何工作,以便我可以编写自己的HTTP客户端。

As I understand it, it's a connection to regular HTTP proxy BUT this connection is made over TLS. 据我所知,它是与常规HTTP代理的连接,但这种连接是通过TLS进行的。 The client indeed needs to support this scheme explicitly and existing clients as-is can't be tuned up (without extra coding). 客户端确实需要明确支持此方案,并且无法调整现有客户端(无需额外编码)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM