Alternative command/method to curl

is there a different way to do the following:

curl -k -H "Content-Type:application/json" -X POST -d'{"api_token": "33blah526c-6bla71-441b-491b-0blahca08"}' https://10.10.10.10/api/1.4/auth/session -c /tmp/myhost01.myhost.com

im seeking to use a different method because i'm running into TLS issues with the above curl command.

issues:

curl: (35) SSL connect error

so the ideal solution will be anything that can be a one liner...perl, python, ruby etc.

Hello SkySmart,

There may be a chance it may be a curl 's known bug(Though your error is not exactly same) but you could check it once. Please go through once from following link too.
curl is at curl.haxx.se / Bugs / #1319 Bug: "Unsupported SSL protocol version" Error

Also in case you are trying to do changes(update curl ) in a non-prod environment.

Thanks,
R. Singh

1 Like