Handling of redirections

Mark Friedman writes:
 > Looking at the HttpManager and HttpURLConnection, it seems that
 > redirection is not automatically handled by the HTTP client code (except
 > to reset the request's URL). Is that true? If so, it would be nice if
 > there could be an option to runRequest() to have it follow the
 > redirections.

runRequest is meant to be "as stupi as possible" leaving any
cleverness to uppper layers (ie HttpURLConnection does the redirection
- when you use it through the URLConnection API)

Note that this is not entirely true when filters are used (ie the
AUthFilter will retry the request behind the runRequest'caller back)

Anselm

Received on Saturday, 24 May 1997 07:53:54 UTC