Eric Johnson wrote:
Redirect on a POST request is *not supported*
This stems from fundamental architectural limitations of the current HttpClient 2.0 design.


Actually the problem is two-fold:

1. "redirect" in HttpClient means: The *same* request ist sent to a
different URL (on the same host). The HTTP Protocol (RFC 2616) explicitly
forbids this kind of redirection for entity enclosing methods
without any user interaction. That's why the flag is set to false.


2. A Location (redirect) header as a response to a POST request
is handled as a GET request to the new URL by browsers. HttpClients design
does not currently allow chaning the method on the fly. That's why you
need to handle this yourself.


Odi
--
 _________________________________________________________________
 NOSE applied intelligence ag

 ortwin glück                      [www]      http://www.nose.ch
 software engineer                 [email] [EMAIL PROTECTED]
 hardturmstrasse 171               [pgp key]          0x81CF3416
 8005 zürich                       [office]      +41-1-277 57 35
 switzerland                       [fax]         +41-1-277 57 12

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



Reply via email to