I'm not sure if there is a similar command/utility which comes along with Linux distro CentOs, Ubuntu and RedHat without installing Curl.

Basically I'd like to do a command like below

curl -H https://website.com/api?...

...but doesn't want to install any tool.


You may try to use openssl for that (if you need https) or nc and parse output by yourself. But are you sure that it's required? Even if you are not sure about curl already installed, python still is good choise with option to use urllib. And here is example of openssl usage:

printf "GET / HTTP/1.0\n\n" | openssl s_client -connect reklamavip.ru:443 -crlf -ign_eof -quiet -verify_return_error 2>/dev/null

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.