updated curl statekments to use -k option to avoid self-signed cert errors when using HTTPS