curl errors

| categories Network  | tags curl 

connection reset

curl -Svv -k https://xxx.yyy.com:443/mysql/MysqlStatus


  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Host https://xxx.yyy.com:443 was resolved.
* IPv6: (none)
* IPv4: 10.10.10.205
*   Trying 10.10.10.205:443...
* Connected to xxx.yyy.com (10.10.10.205) port 443
* ALPN: curl offers h2,http/1.1
} [5 bytes data]
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
  0     0    0     0    0     0      0      0 --:--:--  0:00:09 --:--:--     0* Recv failure: Connection reset by peer
* OpenSSL SSL_connect: Connection reset by peer in connection to 10.10.10.205:443
  0     0    0     0    0     0      0      0 --:--:--  0:00:10 --:--:--     0
* Closing connection
curl: (35) Recv failure: Connection reset by peer

connection refused

curl -ivf https://xxx.yyy.com:443/mysql/MysqlStatus
*   Trying 10.10.10.205...
* TCP_NODELAY set
* Connection failed
* connect to 10.10.10.205 port 443 failed: Connection refused
* Failed to connect to xxx.yyy.com port 443: Connection refused
* Closing connection 0
curl: (7) Failed to connect to xxx.yyy.com port 443: Connection refused
support $curl -ivf http://xxx.yyy.com
*   Trying 10.10.10.205...
* TCP_NODELAY set
* Connection failed
* connect to 10.10.10.205 port 80 failed: Connection refused
* Failed to connect to xxx.yyy.com port 80: Connection refused
* Closing connection 0
curl: (7) Failed to connect to xxx.yyy.com port 80: Connection refused

connection timeout

curl -skv --connect-timeout 10 --max-time 30  http://10.10.10.205:9091/metrics ; date
Fri Oct 21 02:52:11 UTC 2022
*   Trying 10.10.10.205:9091...
* After 10000ms connect time, move on!
* connect to 10.10.10.205 port 9091 failed: Connection timed out
* Connection timeout after 10001 ms
* Closing connection 0

connection can’t assign requested address

curl -vvv http://10.10.10.205:80/metrics

*   Trying 10.10.10.205:80...
* TCP_NODELAY set
* Immediate connect fail for 10.10.10.205: Cannot assign requested address
* Closing connection 0
curl: (7) Couldn't connect to server
command terminated with exit code 7


Prev     Next