add code for httprequest and get websocket url