Hi,

I am having troubles with HTTP Headers while testing a Servlet. This is the scenario:

  1 - Invoke a JSP, which makes a POST request to a Servlet.
  2 - The servlet process the request and, at some point, makes a sendRedirect to another servlet.
  3 - The sencond servlet now checks if the HTTP header "Referer" is set before continuing on processing request.

The header is null at the third step if I use jwebunit, at the second one it has a value but it is lost after sendRedirect. If the request is made by a web browser the header keeps its value after the redirect.

�What can I do to solve this problem?

Regards,

Juan Salvador

Reply via email to