Plain and simple, you can't. For instance, a cookie can have domain & path
attributes that define visibility of that particular cookie. If the cookie
embedded in the original request is not applicable for the new location specified
in the redirect response, it will not be (automatically) included. Your only
change is to disable automatic redirect handling and manually provide whatever
redirect logic that suits your application.

Hope this clarifies things a little 

Oleg


>-- Original Message --
>Reply-To: "Jakarta Commons Users List" <[EMAIL PROTECTED]>
>From: "Mattias Bogeblad" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: How to redirect entire request
>Date: Fri, 24 Sep 2004 15:46:26 +0200
>
>
>Hi,
> 
>How can I use commons-httpclient to forward an entire request object
>with as much info as possible. I would like to have cookies, headers and
>parameters intact when it comes to the destination. This is probably a
>stupid question but I found no docs about it.
> 
>Regards
>Mattias Bogeblad
> 
>_______________________________________________________________
> 
>MATTIAS BOGEBLAD  |  PH: +46 31 761 09 03  |  MOB: +46 702 80 05 05
> 
>SPRAWL SOLUTIONS AB
>DROTTNINGGATAN 5
>411 14 G�TEBORG
>FAX: +46 31 743 92 51
>_______________________________________________________________
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to