Added support for using https for bulk API calls.