SetHTTP and SetHTTPS APIs