Added support for using https with bulk APIs.