Added option to change profile when a http request is made by the browser. #30