Using Curl to get a Https webpage in Windows 7 Using Curl to get a Https webpage in Windows 7 windows windows

Using Curl to get a Https webpage in Windows 7


I found the below steps worked well

  1. Download and unzip 64-bit cURL with SSL.
  2. Download the latest bundle of Certficate Authority Public Keys from mozilla.org.
  3. Rename this file from cacert.pem to curl-ca-bundle.crt
  4. Make sure both of them are in the PATH environment.

Test

curl -L https://www.google.com

UPDATE

If you are open to try other tools, I think httpie is also a good alternative.


curl --insecure

If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option.