Limit CURL to only HTTP & HTTPS

Bug 1394820

Change-Id: I710098cb96ac7d0868926a95c4b4488df4753e4c