curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

SSL_ERROR_SYSCALL in connection to api.telegram.org:443

From: Paulo Roberto Tomasi via curl-users <curl-users_at_cool.haxx.se>
Date: Wed, 13 Nov 2019 20:23:09 -0300

Hi,

I would like help to solve an error related to cURL x Telegram:

# cURL version:
root_at_zabbix-server:/# curl -V
*curl 7.67.0* (x86_64-pc-linux-gnu) libcurl/7.67.0 OpenSSL/1.0.2g
zlib/1.2.11
Release-Date: 2019-11-06
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp
smb smbs smtp smtps telnet tftp
Features: AsynchDNS HTTPS-proxy IPv6 Largefile libz NTLM NTLM_WB SSL
TLS-SRP UnixSockets

# Linux version:
root_at_zabbix-server:/# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: *Ubuntu 16.04.6 LTS*
Release: 16.04
Codename: xenial

==================

When I try curl -v -I https://api.telegram.org:

root@zabbix-server:/# curl -v -I https://api.telegram.org
* Trying 149.154.167.220:443...
* TCP_NODELAY set
* Trying 2001:67c:4e8:f004::9:443...
* TCP_NODELAY set
* Immediate connect fail for 2001:67c:4e8:f004::9: Cannot assign requested
address
* Connected to api.telegram.org (149.154.167.220) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection:
ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: none
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to
api.telegram.org:443
* Closing connection 0
curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to
api.telegram.org:443

=================

cURL gives me *SSL_ERROR_SYSCALL* error.

If I test curl -v -I https://www.telegram.org, everything seems ok.

Could you help me solve this? Thanks

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2019-11-14