ok, so I will replace

 public void setFollowRedirects(boolean followRedirects) {
        if (followRedirects == true) {
            // TODO: EntityEnclosingMethod should inherit from
HttpMethodBase rather than GetMethod
            // Enable exception once the inheritence is fixed
            //throw new IllegalArgumentException(
            //  "Entity enclosing requests cannot be redirected without
user intervention");
        }
        super.setFollowRedirects(false);
    }

by 

 public void setFollowRedirects(boolean followRedirects) {
        super.setFollowRedirects(false);
}

of course I won't be able to use future releases that do not allow this
(like some of the already existent nighly builds) :-(

thank you very much indeed.

<[EMAIL PROTECTED] />


On Tue, 2003-08-26 at 17:37, Sean W. Ferguson wrote:
> Just do as I did, and comment out the line of code that doesn't let you set it 
> to true.  :)
> 
> Santos wrote:
> > Hi all,
> > 
> > I writing to ask you if there's any chance to setFollowRedirects(true)
> > to an instance of PostMethod. I've read in the source that "Entity
> > enclosing requests cannot be redirected without user intervention", but
> > I really need a way to get around this limitation. I know that this is
> > probably due to the HTTP POST spec itself, but I need to invoke an HTTP
> > POST that performs redirection.
> > 
> > Thank you,
> > <[EMAIL PROTECTED] />
> > 
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



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

Reply via email to