hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <ROLWE...@de.ibm.com>
Subject Re: Problem with Cookie!? Need Help
Date Tue, 28 Mar 2006 05:43:36 GMT
Hello Andre,


> 1. I send some post-data to the login-form.
> 2. The server tries to set a cookie and wants to redirect me. My post 
method
> couldn't handle this automatically - it tells me that user intervention
> would be necessary, so:
> 3. I fetch the redirect URL [...]

No you don't. See below.

> 4. But I'm not logged in - I just get another form that wants me to 
login.

Exactly what you requested.

>    private static String url = "http://ebwl.euro-fh-campus.de/campus/";
>    [...]
>      PostMethod method = new PostMethod(url);
>      [...]
>             URL redirectUrl = new
> URL(locationHeader.getValue());

Looks good so far.
 
>             GetMethod gmethod = new GetMethod(url);

Notice anything here? ;-)

cheers,
  Roland


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message