The request gets redirected but the header value do not get passed, as the browser makes a new request which do not contain the header information i put in the servlet. Kindly suggest me a way i can pass information to my application url via headers.
From where to where are you trying to pass information? From the browser to the server? After a redirect? Then you'll have use parameters, since headers aren't preserved through a client-side redirect.
posted 8 years ago
Actually i want to make a client side redirect (i.e, when you click a hyperlink on the browser you will be redirected to a different url passing few header parameters along the request).
Why is the server expecting headers from the client if the client can't set those?
Is that possible to redirect to the url from the browser using XMLHttpRequest ?
straws are for suckers. tiny ads are for attractive people.
Devious Experiments for a Truly Passive Greenhouse!