Handle retrieving resources of next version via curl when using https.
Merge pull request #383 from nickamon/Handle-Resources-HTTPS

Handle retrieving resources of the next API version via curl when using https.