I am using restclient-mode
and trying to POST JSON to an API I'm writing. Making curl requests works fine but I'm getting these errors from restclient.el:
My restclient-mode request looks like this:
POST https://www.example.com/
Content-Type: application/json
{
"email": "[email protected]",
"password": "secretP@55word"
}
I see this output in the Messages buffer:
Contacting host: **API URL**:443
Opening TLS connection to `**API URL**'...
Opening TLS connection with `gnutls-cli --insecure -p 443 **API URL**'...failed
Opening TLS connection with `gnutls-cli --insecure -p 443 **API URL** --protocols ssl3'...failed
Opening TLS connection with `openssl s_client -connect **API URL**:443 -no_ssl2 -ign_eof'...failed
Opening TLS connection to `**API URL**'...failed
url-http: Could not create connection to **API URL**:443
My gnutls-cli info:
$ /usr/local/bin/gnutls-cli --version
gnutls-cli 3.3.9