A server is running on 5000 port. I have to write a bash script to cURL that URL and parse the response. Here the problem is server can run on either
https protocol. That means I have curl either
For now, first I'm checking with
http request. If that request fails then I'm checking
https. Is there any way that
cURL can automatically detect that server running on
httpsand request to it?