swoole / library

📚 Swoole Library
https://wiki.swoole.com/#/library
Apache License 2.0
232 stars 59 forks source link

Support CURLOPT_HTTPPROXYTUNNEL for SWOOLE_HOOK_CURL #126

Closed sy-records closed 2 years ago

sy-records commented 2 years ago

Ignore CURLOPT_HTTPPROXYTUNNEL

twose commented 2 years ago

我不清楚是否应该忽略,或者是否是设置为0的时候才忽略,设置为1的时候报错

sy-records commented 2 years ago

嗯... 不太清楚行为是什么,文档说的是 true 会通过指定的 HTTP 代理来传输,那就是指定proxy的时候了

如果加上这个选项以后,proxy的行为就可能不一致了

matyhtf commented 2 years ago

CURLOPT_HTTPPROXYTUNNEL 只用于非 http/https 协议,而 swoole 只允许 http/https 协议,因此可以忽略此参数