add -k flag to curl command of simpleDownloadUrlAs method