Я пытаюсь использовать curl с прокси
curl -v -X POST -H 'Content-Type: application/json' https://api.telegram.org/botxxx..xxxx/getUpdates
Я установил HTTP_PROXY и HTTPS_PROXY
и соединение установлено:
* Establish HTTP proxy tunnel to api.telegram.org:443
> CONNECT api.telegram.org:443 HTTP/1.1
> Host: api.telegram.org:443
> User-Agent: curl/7.66.0
> Proxy-Connection: Keep-Alive
>
< HTTP/1.1 200 Connection established
<
* Proxy replied 200 to CONNECT request
* CONNECT phase completed!
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: none
} [5 bytes data]
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* CONNECT phase completed!
* CONNECT phase completed!
* OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to api.telegram.org:443
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
* Closing connection 0
curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to api.telegram.org:443
РЕДАКТИРОВАТЬ: я пытаюсь использовать wget и получить вывод:
wget -d -e use_proxy=yes https://api.telegram.org/
---request begin---
CONNECT api.telegram.org:443 HTTP/1.1
User-Agent: Wget/1.20.3 (linux-musl)
Host: api.telegram.org:443
---request end---
proxy responded with: [HTTP/1.1 200 Connection established
]
Initiating SSL handshake.
SSL handshake failed.
Closed fd 3
Unable to establish SSL connection.
Но тогда у меня есть SSL_ERROR_SYSCALL. В чем проблема ? Есть предложения?