I want to pass these parameters with a HTTP request to a WebApp hosted in Tomcat Container,
User Name, Password, The resource this request queries, What type a request is send
So is there a way to add these to HTTP header ? I heard that we can send the User Name and Password using HTTP Basic authentication way. Is there a way to send other parameters also ?
You can make an with the Authorization header having the authentication details, such that further requests join the session and does not need authentication.
Here is how to add Authorization header:
Create the header value.
Add the Authorization header with above value