This gives you a clue
curl: option --socks5-hostname 127.0.0.1:9150: is unknown

Curl thinks that the whole thing is one parameter. You can get the same result by running
curl '--socks5-hostname 127.0.0.1:9150' localhost

What you should do is make it separate. You should try removing the quotes (") altogether, or putting both parts in separate quotes like this:
"--socks5-hostname" "127.0.0.1:9150"
or this:
"--socks5-hostname", "127.0.0.1:9150"
In the latter case the comma is part of the perl syntax.

Reply via email to