Add select httptype and endpoint in the UI

Issue: javascript part is not working to the servlet.