support HTTPs for Discourse API.