【发布时间】:2018-07-29 08:31:51
【问题描述】:
我正在使用以下命令在 Windows 上设置代理:
set http_proxy=http://user:password@proxy.domain.com:port
set https_proxy=https://user:password@proxy.domain.com:port
如何验证是否设置正确?
【问题讨论】:
标签: http command-line https http-proxy
我正在使用以下命令在 Windows 上设置代理:
set http_proxy=http://user:password@proxy.domain.com:port
set https_proxy=https://user:password@proxy.domain.com:port
如何验证是否设置正确?
【问题讨论】:
标签: http command-line https http-proxy
有一种使用数据包捕获的方法。像wireshark。
可以通过端口号来区分。
一般情况下,HTTP 使用端口 80。
但是,如果您对代理配置使用不同的端口,则可以将其区分为端口号。
可以通过HTTP请求头来区分。
使用 HTTP 代理的请求 URL 包含完整的 URI。喜欢GET http://www.kangmj37.com HTTP/1.1
使用CONNECT 的HTTPS 代理的请求方法。喜欢CONNECT www.kangmj37.com:443 HTTP/1.1。参见 RFC https://www.rfc-editor.org/rfc/rfc7231#section-4.3.6
4.3.6。连接
CONNECT 仅用于对代理的请求。
【讨论】:
echo %http_proxy%