Support https

Close #1