Hello Roland, many thanks for your immediate answer to my problem.
Although I've changed the url to "locationHeader.getValue()", i.e.: GetMethod gmethod = new GetMethod(locationHeader.getValue()); it doesn't work (at first I thought that the URLs would be same, hence I used "url" als a variable; in some way the URLs are really the same, only the parameters are different!?). See the console's output below. Please don't give up to help me :-) Greetings from windy Hamburgg, André DEBUG [org.apache.commons.httpclient.HttpClient] Java version: 1.5.0_06 DEBUG [org.apache.commons.httpclient.HttpClient] Java vendor: Sun Microsystems Inc. DEBUG [org.apache.commons.httpclient.HttpClient] Java class path: C:\Eigenes\Localhost Workspace\webF;C:\Programme\Java\jdk1.5.0_06\lib\commons-httpclient-3.0.jar; C:\Programme\Java\jdk1.5.0_06\lib\commons-codec-1.3\commons-codec-1.3.jar;C: \Programme\Java\jdk1.5.0_06\lib\commons-logging-1.0.4\commons-logging.jar;C: \Programme\Java\jdk1.5.0_06\lib\commons-logging-1.0.4\commons-logging-api.ja r;C:\Programme\Java\jdk1.5.0_06\lib\junit4.0\junit-4.0.jar;C:\Programme\Java \jdk1.5.0_06\lib\junit4.0\junit-4.0-src.jar;C:\Programme\Java\jdk1.5.0_06\li b\logging-log4j-1.2.13\dist\lib\log4j-1.2.13.jar DEBUG [org.apache.commons.httpclient.HttpClient] Operating system name: Windows XP DEBUG [org.apache.commons.httpclient.HttpClient] Operating system architecture: x86 DEBUG [org.apache.commons.httpclient.HttpClient] Operating system version: 5.1 DEBUG [org.apache.commons.httpclient.HttpClient] SUN 1.5: SUN (DSA key/parameter generation; DSA signing; SHA-1, MD5 digests; SecureRandom; X.509 certificates; JKS keystore; PKIX CertPathValidator; PKIX CertPathBuilder; LDAP, Collection CertStores) DEBUG [org.apache.commons.httpclient.HttpClient] SunRsaSign 1.5: Sun RSA signature provider DEBUG [org.apache.commons.httpclient.HttpClient] SunJSSE 1.5: Sun JSSE provider(PKCS12, SunX509 key/trust factories, SSLv3, TLSv1) DEBUG [org.apache.commons.httpclient.HttpClient] SunJCE 1.5: SunJCE Provider (implements RSA, DES, Triple DES, AES, Blowfish, ARCFOUR, RC2, PBE, Diffie-Hellman, HMAC) DEBUG [org.apache.commons.httpclient.HttpClient] SunJGSS 1.0: Sun (Kerberos v5) DEBUG [org.apache.commons.httpclient.HttpClient] SunSASL 1.5: Sun SASL provider(implements client mechanisms for: DIGEST-MD5, GSSAPI, EXTERNAL, PLAIN, CRAM-MD5; server mechanisms for: DIGEST-MD5, GSSAPI, CRAM-MD5) DEBUG [org.apache.commons.httpclient.params.DefaultHttpParams] Set parameter http.useragent = Jakarta Commons-HttpClient/3.0 DEBUG [org.apache.commons.httpclient.params.DefaultHttpParams] Set parameter http.protocol.version = HTTP/1.1 DEBUG [org.apache.commons.httpclient.params.DefaultHttpParams] Set parameter http.connection-manager.class = class org.apache.commons.httpclient.SimpleHttpConnectionManager DEBUG [org.apache.commons.httpclient.params.DefaultHttpParams] Set parameter http.protocol.cookie-policy = rfc2109 DEBUG [org.apache.commons.httpclient.params.DefaultHttpParams] Set parameter http.protocol.element-charset = US-ASCII DEBUG [org.apache.commons.httpclient.params.DefaultHttpParams] Set parameter http.protocol.content-charset = ISO-8859-1 DEBUG [org.apache.commons.httpclient.params.DefaultHttpParams] Set parameter http.method.retry-handler = [EMAIL PROTECTED] DEBUG [org.apache.commons.httpclient.params.DefaultHttpParams] Set parameter http.dateparser.patterns = [EEE, dd MMM yyyy HH:mm:ss zzz, EEEE, dd-MMM-yy HH:mm:ss zzz, EEE MMM d HH:mm:ss yyyy, EEE, dd-MMM-yyyy HH:mm:ss z, EEE, dd-MMM-yyyy HH-mm-ss z, EEE, dd MMM yy HH:mm:ss z, EEE dd-MMM-yyyy HH:mm:ss z, EEE dd MMM yyyy HH:mm:ss z, EEE dd-MMM-yyyy HH-mm-ss z, EEE dd-MMM-yy HH:mm:ss z, EEE dd MMM yy HH:mm:ss z, EEE,dd-MMM-yy HH:mm:ss z, EEE,dd-MMM-yyyy HH:mm:ss z, EEE, dd-MM-yyyy HH:mm:ss z] DEBUG [org.apache.commons.httpclient.methods.PostMethod] enter PostMethod.setRequestBody(NameValuePair[]) DEBUG [org.apache.commons.httpclient.methods.PostMethod] enter PostMethod.clearRequestBody() DEBUG [org.apache.commons.httpclient.methods.EntityEnclosingMethod] enter EntityEnclosingMethod.clearRequestBody() DEBUG [org.apache.commons.httpclient.methods.PostMethod] enter PostMethod.addParameters(NameValuePair[]) DEBUG [org.apache.commons.httpclient.methods.EntityEnclosingMethod] enter EntityEnclosingMethod.clearRequestBody() DEBUG [org.apache.commons.httpclient.params.DefaultHttpParams] Set parameter http.method.retry-handler = [EMAIL PROTECTED] DEBUG [org.apache.commons.httpclient.HttpClient] enter HttpClient.executeMethod(HttpMethod) DEBUG [org.apache.commons.httpclient.HttpClient] enter HttpClient.executeMethod(HostConfiguration,HttpMethod,HttpState) DEBUG [org.apache.commons.httpclient.HttpMethodDirector] Attempt number 1 to process request DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.open() DEBUG [org.apache.commons.httpclient.HttpConnection] Open connection to ebwl.euro-fh-campus.de:80 DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.execute(HttpState, HttpConnection) DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.writeRequest(HttpState, HttpConnection) DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.writeRequestLine(HttpState, HttpConnection) DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.generateRequestLine(HttpConnection, String, String, String, String) DEBUG [httpclient.wire.header] >> "POST /campus/ HTTP/1.1[\r][\n]" DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.print(String) DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.write(byte[]) DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.write(byte[], int, int) DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.writeRequestHeaders(HttpState,HttpConnection) DEBUG [org.apache.commons.httpclient.methods.EntityEnclosingMethod] enter EntityEnclosingMethod.addRequestHeaders(HttpState, HttpConnection) DEBUG [org.apache.commons.httpclient.methods.ExpectContinueMethod] enter ExpectContinueMethod.addRequestHeaders(HttpState, HttpConnection) DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.addRequestHeaders(HttpState, HttpConnection) DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.addUserAgentRequestHeaders(HttpState, HttpConnection) DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.addHostRequestHeader(HttpState, HttpConnection) DEBUG [org.apache.commons.httpclient.HttpMethodBase] Adding Host request header DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.addCookieRequestHeader(HttpState, HttpConnection) DEBUG [org.apache.commons.httpclient.HttpState] enter HttpState.getCookies() DEBUG [org.apache.commons.httpclient.cookie.CookieSpec] enter CookieSpecBase.match(String, int, String, boolean, Cookie[]) DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.addProxyConnectionHeader(HttpState, HttpConnection) DEBUG [org.apache.commons.httpclient.methods.EntityEnclosingMethod] enter EntityEnclosingMethod.addContentLengthRequestHeader(HttpState, HttpConnection) DEBUG [org.apache.commons.httpclient.methods.EntityEnclosingMethod] enter EntityEnclosingMethod.getRequestContentLength() DEBUG [org.apache.commons.httpclient.methods.PostMethod] enter PostMethod.hasRequestContent() DEBUG [org.apache.commons.httpclient.methods.PostMethod] enter PostMethod.getParameters() DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter getContentCharSet( Header contentheader ) DEBUG [org.apache.commons.httpclient.HttpMethodBase] Default charset used: ISO-8859-1 DEBUG [org.apache.commons.httpclient.HttpMethodBase] HttpMethodBase.addRequestHeader(Header) DEBUG [org.apache.commons.httpclient.methods.PostMethod] enter PostMethod.getParameters() DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter getContentCharSet( Header contentheader ) DEBUG [org.apache.commons.httpclient.HeaderElement] enter HeaderElement.parseElements(String) DEBUG [org.apache.commons.httpclient.HeaderElement] enter HeaderElement.parseElements(char[]) DEBUG [org.apache.commons.httpclient.HeaderElement] enter HeaderElement.getParameterByName(String) DEBUG [org.apache.commons.httpclient.HttpMethodBase] Default charset used: ISO-8859-1 DEBUG [httpclient.wire.header] >> "User-Agent: Jakarta Commons-HttpClient/3.0[\r][\n]" DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.print(String) DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.write(byte[]) DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.write(byte[], int, int) DEBUG [httpclient.wire.header] >> "Host: ebwl.euro-fh-campus.de[\r][\n]" DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.print(String) DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.write(byte[]) DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.write(byte[], int, int) DEBUG [httpclient.wire.header] >> "Content-Length: 52[\r][\n]" DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.print(String) DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.write(byte[]) DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.write(byte[], int, int) DEBUG [httpclient.wire.header] >> "Content-Type: application/x-www-form-urlencoded[\r][\n]" DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.print(String) DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.write(byte[]) DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.write(byte[], int, int) DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.writeLine() DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.write(byte[]) DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.write(byte[], int, int) DEBUG [httpclient.wire.header] >> "[\r][\n]" DEBUG [org.apache.commons.httpclient.methods.EntityEnclosingMethod] enter EntityEnclosingMethod.writeRequestBody(HttpState, HttpConnection) DEBUG [org.apache.commons.httpclient.methods.PostMethod] enter PostMethod.hasRequestContent() DEBUG [org.apache.commons.httpclient.methods.EntityEnclosingMethod] enter EntityEnclosingMethod.getRequestContentLength() DEBUG [org.apache.commons.httpclient.methods.PostMethod] enter PostMethod.hasRequestContent() DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.getRequestOutputStream() DEBUG [org.apache.commons.httpclient.methods.EntityEnclosingMethod] Request body sent DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.flushRequestOutputStream() DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.readResponse(HttpState, HttpConnection) DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.readStatusLine(HttpState, HttpConnection) DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.readLine() DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readLine(InputStream, String) DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readRawLine() DEBUG [httpclient.wire.header] << "HTTP/1.1 302 Found[\r][\n]" DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.readResponseHeaders(HttpState,HttpConnection) DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.getResponseInputStream() DEBUG [org.apache.commons.httpclient.HttpParser] enter HeaderParser.parseHeaders(InputStream, String) DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readLine(InputStream, String) DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readRawLine() DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readLine(InputStream, String) DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readRawLine() DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readLine(InputStream, String) DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readRawLine() DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readLine(InputStream, String) DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readRawLine() DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readLine(InputStream, String) DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readRawLine() DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readLine(InputStream, String) DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readRawLine() DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readLine(InputStream, String) DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readRawLine() DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readLine(InputStream, String) DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readRawLine() DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readLine(InputStream, String) DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readRawLine() DEBUG [httpclient.wire.header] << "Date: Tue, 28 Mar 2006 15:28:52 GMT[\r][\n]" DEBUG [httpclient.wire.header] << "Server: Apache/1.3.33 (Unix)[\r][\n]" DEBUG [httpclient.wire.header] << "X-Powered-By: PHP/4.4.2[\r][\n]" DEBUG [httpclient.wire.header] << "Status: 302 Moved Temporarily[\r][\n]" DEBUG [httpclient.wire.header] << "Set-Cookie: Lernbar=9c68975b63532db9c8e19c251b59ab2e; path=/[\r][\n]" DEBUG [httpclient.wire.header] << "Location: http://ebwl.euro-fh-campus.de/campus/index.php?Lernbar=9c68975b63532db9c8e19 c251b59ab2e[\r][\n]" DEBUG [httpclient.wire.header] << "Transfer-Encoding: chunked[\r][\n]" DEBUG [httpclient.wire.header] << "Content-Type: text/html[\r][\n]" DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.processResponseHeaders(HttpState, HttpConnection) DEBUG [org.apache.commons.httpclient.cookie.CookieSpec] enter CookieSpecBase.parse(String, port, path, boolean, String) DEBUG [org.apache.commons.httpclient.cookie.CookieSpec] enter CookieSpecBase.parse(String, port, path, boolean, Header) DEBUG [org.apache.commons.httpclient.HeaderElement] enter HeaderElement.parseElements(char[]) Method failed: HTTP/1.1 302 Found DEBUG [org.apache.commons.httpclient.Cookie] enter Cookie(String, String, String, String, Date, boolean) DEBUG [org.apache.commons.httpclient.cookie.CookieSpec] enter RFC2109Spec.validate(String, int, String, boolean, Cookie) DEBUG [org.apache.commons.httpclient.cookie.CookieSpec] enter CookieSpecBase.validate(String, port, path, boolean, Cookie) DEBUG [org.apache.commons.httpclient.HttpState] enter HttpState.addCookie(Cookie) DEBUG [org.apache.commons.httpclient.cookie.CookieSpec] enter RFC2109Spec.formatCookie(Cookie) DEBUG [org.apache.commons.httpclient.HttpMethodBase] Cookie accepted: "$Version=0; Lernbar=9c68975b63532db9c8e19c251b59ab2e; $Path=/" DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.readResponseBody(HttpState, HttpConnection) DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.readResponseBody(HttpConnection) DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.getResponseInputStream() DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.canResponseHaveBody(int) DEBUG [org.apache.commons.httpclient.HeaderElement] enter HeaderElement.parseElements(String) DEBUG [org.apache.commons.httpclient.HeaderElement] enter HeaderElement.parseElements(char[]) DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.isResponseAvailable(int) DEBUG [org.apache.commons.httpclient.HttpMethodDirector] Redirect required INFO [org.apache.commons.httpclient.HttpMethodDirector] Redirect requested but followRedirects is disabled DEBUG [org.apache.commons.httpclient.HttpParser] enter HeaderParser.parseHeaders(InputStream, String) DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readLine(InputStream, String) DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readRawLine() DEBUG [org.apache.commons.httpclient.HttpMethodBase] Resorting to protocol version default close connection policy DEBUG [org.apache.commons.httpclient.HttpMethodBase] Should NOT close connection, using HTTP/1.1 DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.isResponseAvailable() DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.releaseConnection() DEBUG [org.apache.commons.httpclient.HttpConnection] Releasing connection back to connection manager. Redirect: http://ebwl.euro-fh-campus.de/campus/index.php?Lernbar=9c68975b63532db9c8e19 c251b59ab2e DEBUG [org.apache.commons.httpclient.methods.GetMethod] enter GetMethod(String) DEBUG [org.apache.commons.httpclient.params.DefaultHttpParams] Set parameter http.protocol.cookie-policy = rfc2109 DEBUG [org.apache.commons.httpclient.params.DefaultHttpParams] Set parameter http.method.retry-handler = [EMAIL PROTECTED] DEBUG [org.apache.commons.httpclient.HttpClient] enter HttpClient.executeMethod(HttpMethod) DEBUG [org.apache.commons.httpclient.HttpClient] enter HttpClient.executeMethod(HostConfiguration,HttpMethod,HttpState) DEBUG [org.apache.commons.httpclient.HttpMethodDirector] Attempt number 1 to process request DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.execute(HttpState, HttpConnection) DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.writeRequest(HttpState, HttpConnection) DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.writeRequestLine(HttpState, HttpConnection) DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.generateRequestLine(HttpConnection, String, String, String, String) DEBUG [httpclient.wire.header] >> "GET /campus/index.php?Lernbar=9c68975b63532db9c8e19c251b59ab2e HTTP/1.1[\r][\n]" DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.print(String) DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.write(byte[]) DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.write(byte[], int, int) DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.writeRequestHeaders(HttpState,HttpConnection) DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.addRequestHeaders(HttpState, HttpConnection) DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.addUserAgentRequestHeaders(HttpState, HttpConnection) DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.addHostRequestHeader(HttpState, HttpConnection) DEBUG [org.apache.commons.httpclient.HttpMethodBase] Adding Host request header DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.addCookieRequestHeader(HttpState, HttpConnection) DEBUG [org.apache.commons.httpclient.HttpState] enter HttpState.getCookies() DEBUG [org.apache.commons.httpclient.cookie.CookieSpec] enter CookieSpecBase.match(String, int, String, boolean, Cookie[]) DEBUG [org.apache.commons.httpclient.cookie.CookieSpec] enter CookieSpecBase.match(String, int, String, boolean, Cookie DEBUG [org.apache.commons.httpclient.cookie.CookieSpec] enter RFC2109Spec.formatCookie(Cookie) DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.addProxyConnectionHeader(HttpState, HttpConnection) DEBUG [httpclient.wire.header] >> "User-Agent: Jakarta Commons-HttpClient/3.0[\r][\n]" DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.print(String) DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.write(byte[]) DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.write(byte[], int, int) DEBUG [httpclient.wire.header] >> "Host: ebwl.euro-fh-campus.de[\r][\n]" DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.print(String) DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.write(byte[]) DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.write(byte[], int, int) DEBUG [httpclient.wire.header] >> "Cookie: $Version=0; Lernbar=9c68975b63532db9c8e19c251b59ab2e; $Path=/[\r][\n]" DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.print(String) DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.write(byte[]) DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.write(byte[], int, int) DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.writeLine() DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.write(byte[]) DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.write(byte[], int, int) DEBUG [httpclient.wire.header] >> "[\r][\n]" DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.flushRequestOutputStream() DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.readResponse(HttpState, HttpConnection) DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.readStatusLine(HttpState, HttpConnection) DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.readLine() DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readLine(InputStream, String) DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readRawLine() DEBUG [httpclient.wire.header] << "HTTP/1.1 200 OK[\r][\n]" DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.readResponseHeaders(HttpState,HttpConnection) DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.getResponseInputStream() DEBUG [org.apache.commons.httpclient.HttpParser] enter HeaderParser.parseHeaders(InputStream, String) DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readLine(InputStream, String) DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readRawLine() DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readLine(InputStream, String) DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readRawLine() DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readLine(InputStream, String) DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readRawLine() DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readLine(InputStream, String) DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readRawLine() DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readLine(InputStream, String) DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readRawLine() DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readLine(InputStream, String) DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readRawLine() DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readLine(InputStream, String) DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readRawLine() DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readLine(InputStream, String) DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readRawLine() DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readLine(InputStream, String) DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readRawLine() DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readLine(InputStream, String) DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readRawLine() DEBUG [httpclient.wire.header] << "Date: Tue, 28 Mar 2006 15:28:53 GMT[\r][\n]" DEBUG [httpclient.wire.header] << "Server: Apache/1.3.33 (Unix)[\r][\n]" DEBUG [httpclient.wire.header] << "X-Powered-By: PHP/4.4.2[\r][\n]" DEBUG [httpclient.wire.header] << "Expires: Mon, 26 Jul 1997 05:00:00 GMT[\r][\n]" DEBUG [httpclient.wire.header] << "Last-Modified: Tue, 28 Mar 2006 15:28:53 GMT[\r][\n]" DEBUG [httpclient.wire.header] << "Cache-Control: post-check=0, pre-check=0[\r][\n]" DEBUG [httpclient.wire.header] << "Pragma: no-cache[\r][\n]" DEBUG [httpclient.wire.header] << "Transfer-Encoding: chunked[\r][\n]" DEBUG [httpclient.wire.header] << "Content-Type: text/html[\r][\n]" DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.processResponseHeaders(HttpState, HttpConnection) DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.readResponseBody(HttpState, HttpConnection) DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.readResponseBody(HttpConnection) DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.getResponseInputStream() DEBUG [org.apache.commons.httpclient.HttpMethodBase] enter HttpMethodBase.canResponseHaveBody(int) DEBUG [org.apache.commons.httpclient.HeaderElement] enter HeaderElement.parseElements(String) DEBUG [org.apache.commons.httpclient.HeaderElement] enter HeaderElement.parseElements(char[]) DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.isResponseAvailable(int) <HTML> <HEAD> <TITLE>Anmeldung zum Online-Campus der Europäischen Fernhochschule Hamburg</TITLE> <link rel="stylesheet" href="style.css" type="text/css"> <META http-equiv="content-language" content="de"> </HEAD> <frameset cols=*,793,* framespacing="0" frameborder="0" border="0"> <frame src="/nothing.php" scrolling="no" frameborder="0" border="0" marginwidth=0 marginheight=0> <frame src="/campus/login_neu.inc.php?login_fehlermeldung=" scrolling="auto" frameborder=0 marginwidth=0 marginheight=0> <frame src="/nothing.php" scrolling="no" frameborder=0 marginwidth=0 marginheight=0> </frameset> <BODY> </BODY> </HTML> DEBUG [org.apache.commons.httpclient.HttpParser] enter HeaderParser.parseHeaders(InputStream, String) DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readLine(InputStream, String) DEBUG [org.apache.commons.httpclient.HttpParser] enter HttpParser.readRawLine() DEBUG [org.apache.commons.httpclient.HttpMethodBase] Resorting to protocol version default close connection policy DEBUG [org.apache.commons.httpclient.HttpMethodBase] Should NOT close connection, using HTTP/1.1 DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.isResponseAvailable() DEBUG [org.apache.commons.httpclient.HttpConnection] enter HttpConnection.releaseConnection() DEBUG [org.apache.commons.httpclient.HttpConnection] Releasing connection back to connection manager. -----Ursprüngliche Nachricht----- Von: Roland Weber [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 28. März 2006 07:44 An: HttpClient User Discussion Betreff: Re: Problem with Cookie!? Need Help 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
