有人可以理解这种巨大的curlopt_proxytype混乱吗?
我将这两个URL与curlopt_proxytype
:
https://www.php.net/manual/en/en/function.curl-setopt.php :
curlproxy_http(默认),curlproxy_socks4,curlproxy_socks5,curlproxy_socks4a或curlproxy_socks5_hostname。
https://curl.se/curl.se/libcurl/curlopt _curlopt_proxyproxypepepepepepe.html </
curlproxy_http
HTTP代理。默认。
curlproxy_https
https代理。 (在OpenSL,Gnutls和NSS中添加7.52.0)
这使我感到非常困惑。 curlproxy_https
选项似乎完全消失在PHP手册中,但存在于官方curl One中。但是我的PHP-Curl代理似乎即使将“ HTTP”作为代理类型也使用HTTP ...或者至少我当然希望...
因此,如果“ HTTP”代理类型包括“ HTTPS”在最近添加并混乱地命名的curlproxy_https
中,
I compare these two URLs in regards to CURLOPT_PROXYTYPE
:
https://www.php.net/manual/en/function.curl-setopt.php :
Either CURLPROXY_HTTP (default), CURLPROXY_SOCKS4, CURLPROXY_SOCKS5, CURLPROXY_SOCKS4A or CURLPROXY_SOCKS5_HOSTNAME.
https://curl.se/libcurl/c/CURLOPT_PROXYTYPE.html :
CURLPROXY_HTTP
HTTP Proxy. Default.
CURLPROXY_HTTPS
HTTPS Proxy. (Added in 7.52.0 for OpenSSL, GnuTLS and NSS)
This massively confuses me. The CURLPROXY_HTTPS
options seems entirely gone in the PHP manual, but exists in the official cURL one. But my PHP-cURL proxies seem to use HTTPS even with "HTTP" as the proxy type... or at least I certainly hope so...
So if the "HTTP" proxy type "includes" HTTPS, what exactly is the point of the apparently recently added, and confusingly named, CURLPROXY_HTTPS
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论