Add --insecure to curl output if required

Change-Id: I5762f6659a6687b86c94a6e371ccc7509d1e26f9
Merge "Add --insecure to curl output if required"