|
Anver,
----- Original Message -----
Sent: Thursday, October 18, 2001 5:14
PM
Subject: Re: testing redirects
I believe HTTP 302 status is a client
side redirect ... so you have two options:
Option one: do server side redirect so in
request-response you'll get you error page as response.
Option two: Client side redirect works like this:
Servlet respond contains HTTP status 302 and page to be redirected to. Client
browser recognizes this response and redirects to your error page.
So this option is to amalyze that HTTP 302
response is correct and you can analyze HTTP header to check that client will
be redirected to correct erro page.
Actually, there is nothing to do to support
redirects, as all HTTP connection classes already handle redirects by default
(HttpURLConnection does and HttpClient too). Cactus chose to voluntarily disable
redirects (see my other mail).
thanks
-Vincent
|