altered curl to use -k option to avoid self-signed cert errors on HTTPS