https and https proxy support