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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to