1

I started a MockServer using

java -jar mockserver-netty-5.10.0-jar-with-dependencies.jar -serverPort 1080

Now if i do (no sock proxy)

curl https://www.google.com

it work html get printed

But If i do (with socks proxy)

 curl --socks5-hostname localhost:1080 https://www.google.com

The curl request just stuck forever.

My expectation is to use MockServer as a Sock proxy

What am i doing wrong?


PS: If i use MockServer as a http proxy is works fine, So what am i doing wrong with sock

curl -k --proxy localhost:1080 https://www.google.com   this works
Lin Du
  • 88,126
  • 95
  • 281
  • 483
Bhuvan
  • 4,028
  • 6
  • 42
  • 84

0 Answers0