Allow custom URL parameter for http_connection

The URL was hardcoded in the http_connection class, which is not the case for websocket_connection. Now the URL parameter used in the constructor is used for both connection methods.