Content-Type: application/dns-json" "https://dns.google.com/resolve?name=www.google.com&type=A" -v* Host proxy.myCompany.tld:8080 was resolved. * IPv6: (none) * IPv4: 192.168.164.2 * Trying 192.168.164.2:8080... * CONNECT tunnel: HTTP/1.1 negotiated * allocate connect buffer * Proxy auth using Basic with user 'bob' * Establish HTTP proxy tunnel to dns.google.com:443 > CONNECT dns.google.com:443 HTTP/1.1 > Host: dns.google.com:443 > Proxy-Authorization: Basic eHMyZTE4NzI6b29ndUJpQmlebGV4bzM= > User-Agent: curl/8.14.1 > Proxy-Connection: Keep-Alive > < HTTP/1.1 200 Connection established < * CONNECT phase completed * CONNECT tunnel established, response 200 * ALPN: curl offers h2,http/1.1 * TLSv1.3 (OUT), TLS handshake, Client hello (1): * CAfile: /etc/ssl/certs/ca-certificates.crt * CApath: /etc/ssl/certs * Recv failure: Connection reset by peer * TLS connect error: error:00000000:lib(0)::reason(0) * OpenSSL SSL_connect: Connection reset by peer in connection to dns.google.com:443 * closing connection #0 curl: (35) Recv failure: Connection reset by peer
HTTP/1.1 200
Date: Thu, 14 Sep 2023 13:28:48 GMT 1 block of HTTP headers
Server: Apache/2
HTTP/1.1 200 Connection established Date: Thu, 14 Sep 2023 13:28:48 GMT block 1 Via: proxyXYZ.mycompany.tld:80 HTTP/1.1 200 Date: Thu, 14 Sep 2023 13:28:48 GMT block 2 Server: Apache/2
curl: (35) error:0A00010B:SSL routines::wrong version number
https:// in the proxy value (-x parameter) is wrong and should be http://.HTTP CONNECT method for details.
http in the proxy value :
curl: (52) Empty reply from server
curl: (35) Unknown SSL protocol error in connection to 12.34.56.78:443
curl: (7) couldn't connect to host
(UNKNOWN) [12.34.56.78] 80 (http) : Connection timed out (UNKNOWN) [12.34.56.78] 443 (https) openConfirmed !
empty response,
no data sent from server, or something like that with an other tool such as wget or the Web Developer Firefox extension
http_proxy=http://proxyHost:proxyPort https_proxy=https://proxyHost:proxyPort
http_proxy=http://proxyHost:proxyPort https_proxy=http://proxyHost:proxyPort
141 exit code, and the message :* additional stuff not fine transfer.c:1037: 0 0 * SSL read: error:00000000:lib(0):func(0):reason(0), errno 104 * Closing connection #0What does that mean ?
141 exit code (source) :> Under what circumstances will cURL print the following message: > * additional stuff not fine transfer.c:1037: 0 0 That's a debug output I put there once to aid me debugging a transfer case I had problems with and I then left it there. It is only present in debug builds and basically if you need to ask about it, the message is not for you...
It just explains that the transfer is not deemed complete yet. You need to look at protocol and TCP details to see what's going on
Failure with receiving network data https://stackoverflow.com/questions/10285700/curl-error-recv-failure-connection-reset-by-peer-php-curl#10349895
https_proxy=http://login:password@proxy.company.tld:port; curl