apply https in userWrite.