Fix incorrectly placed SocketError in url expansion
Enable https support