why socks5 protocol in `http_proxy` lead "curl: (52) Empty reply from server"?

Viewed 24

I use the shadowsocks and the proxy client is called Trojan-Qt5. I am testing whether I can visit www.google.com in terminal.

when I set the environment variable http_proxy to http protocol

export "http_proxy=http://127.0.0.1:58591"

the command curl -Iv www.google.com return normal response.

However, when I set http_proxy to socks5 protocol

export "http_proxy=socks5://127.0.0.1:51837"

it returns

curl: (52) Empty reply from server

screenshot of the iterm2

I just want to know why changing to socks5 protocol lead to the problem?

By the way, the question is different from this.

0 Answers
Related