有人可以理解这种巨大的curlopt_proxytype混乱吗?

发布于 2025-02-13 17:26:56 字数 915 浏览 5 评论 0原文

我将这两个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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文