I'm trying to curl an API server using command substitution but it seems that I'm missing something in my bash command.
test@macos:~$ echo $APISERVER
https://192.168.99.101:8443
test@macos:~$ curl -g "$APISERVER"
curl: (6) Could not resolve host: https
What I'm trying to achieve is this:
test@macos:~$ curl -g https://192.168.99.101:8443
curl: (60) SSL certificate problem: unable to get local issuer certificate
Here are some additional info that may be helpful:
test@macos:~$ curl --version
curl 7.54.0 (x86_64-apple-darwin18.0)
test@macos:~$ echo $BASH_VERSION
5.0.11(1)-release