Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

curl: (52) Empty reply from server #148

Open
qaiwiz opened this issue Feb 10, 2023 · 1 comment
Open

curl: (52) Empty reply from server #148

qaiwiz opened this issue Feb 10, 2023 · 1 comment
Labels

Comments

@qaiwiz
Copy link

qaiwiz commented Feb 10, 2023

Trying to reproduce the following example on my macOS (Monterey 12.6.3) and it fails with the following error: (I have brew installed proxychain version 4.16 )
$ ssh -fqCN -D 8080 some.example.com
$ PROXYCHAINS_SOCKS5=8080 proxychains4 zsh

I should add that I am currently using stunnel (using squid) here is my stunnel.conf

sslVersion = all
debug = 7
[squid]
client = yes

options = NO_SSLv2
options = DONT_INSERT_EMPTY_FRAGMENTS

cert = /usr/local/etc/stunnel/stunnel.pem
accept = 127.0.0.1:8080
connect = "host_ip":8888

over this port and it is working fine on browsers, but it doesn't work on my bash (eg curl fails with socks5).
~$curl ifconfig
returns the following error, and I was/am hoping that proxychains can fix this. I have tried various combination of socks5, and --socks5-hostname, ... none has resolved this particular issue.

  • Trying 172.64.195.16:80...
  • Connected to ifconfig.io (172.64.195.16) port 80 (#0)

GET / HTTP/1.1
Host: ifconfig.io
User-Agent: curl/7.87.0
Accept: /

  • Empty reply from server
  • Closing connection 0
    curl: (52) Empty reply from server
Copy link

Stale issue message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants