Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 5005 invoked from network); 28 Mar 2006 07:47:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Mar 2006 07:47:18 -0000 Received: (qmail 33045 invoked by uid 500); 28 Mar 2006 07:47:17 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 33031 invoked by uid 500); 28 Mar 2006 07:47:17 -0000 Mailing-List: contact httpclient-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: "HttpClient User Discussion" Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-user@jakarta.apache.org Delivered-To: moderator for httpclient-user@jakarta.apache.org Received: (qmail 68718 invoked by uid 99); 27 Mar 2006 22:54:53 -0000 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=PLING_QUERY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) From: "Kolell, Andre" To: Subject: Problem with Cookie!? Need Help Date: Tue, 28 Mar 2006 00:54:26 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Thread-Index: AcZR8WWqcc53HbwQR9KHF9vj6xXzag== X-Virus-Checked: Checked by ClamAV on apache.org Message-Id: <20060327225451.D49EA10FB000@asf.osuosl.org> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, I'm new to the user group and I have to admit that I'm an absolute Newbee to HttpClient (although I've read the user guide...) and that I'm just making my first steps with Java. So far everything more oder less worked, but since a few hours I get nowhere. I try to connect to my university's "online-campus" to look automatically for new marks (which I'd like to send to myself via Mail or SMS), but I can't login without problems. The steps are the following: 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 and try to connect it easily, hoping that i will arrive on the "logged in-page". 4. But I'm not logged in - I just get another form that wants me to login. :-( May be the following is too much code, but I don't know what might be important and what is unimportant. If I can shorten the code or facilitate you in any other way to help me with my problem, please let me know! I would be really greateful to get some help. Here is my class: ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ---- package de.kolell.webF; import org.apache.commons.httpclient.*; import org.apache.commons.httpclient.cookie.CookiePolicy; import org.apache.commons.httpclient.methods.*; import org.apache.commons.httpclient.params.HttpMethodParams; import java.io.*; import java.net.URL; public class WebF { private static String url = "http://ebwl.euro-fh-campus.de/campus/"; private static HttpClient client = new HttpClient(); public static void main(String[] args) { test1(); } private static void test1() { // Create a method instance. PostMethod method = new PostMethod(url); NameValuePair[] data = { new NameValuePair("loginjetzt", "nein"), new NameValuePair("username", "904308701"), new NameValuePair("password", "FOO") }; method.setRequestBody(data); // Provide custom retry handler is necessary method.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, new DefaultHttpMethodRetryHandler(3, false)); try { // Execute the method. int statusCode = client.executeMethod(method); if (statusCode != HttpStatus.SC_OK) { System.err.println("Method failed: " + method.getStatusLine()); } // Read the response body. Reader is = new InputStreamReader( method.getResponseBodyAsStream() ); BufferedReader in = new BufferedReader( is ); // Deal with the response. // Use caution: ensure correct character encoding and is not binary data for ( String s; ( s = in.readLine() ) != null; ) System.out.println( s ); // Tell me about the redirect. Header locationHeader = method.getResponseHeader("location"); if (locationHeader != null) { URL redirectUrl = new URL(locationHeader.getValue()); String lernbar = redirectUrl.getQuery().substring(8,redirectUrl.getQuery().length()); System.out.println("\nRedirect: " + locationHeader.getValue() + "\n"); GetMethod gmethod = new GetMethod(url); method.getParams().setCookiePolicy(CookiePolicy.RFC_2109); // Provide custom retry handler is necessary gmethod.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, new DefaultHttpMethodRetryHandler(3, false)); // Execute the method. statusCode = client.executeMethod(gmethod); if (statusCode != HttpStatus.SC_OK) { System.err.println("Method failed: " + gmethod.getStatusLine()); } // Read the response body. is = new InputStreamReader( gmethod.getResponseBodyAsStream() ); in = new BufferedReader( is ); // Deal with the response. // Use caution: ensure correct character encoding and is not binary data for ( String s; ( s = in.readLine() ) != null; ) System.out.println( s ); } else { // The response is invalid and did not provide the new location for // the resource. Report an error or possibly handle the response // like a 404 Not Found error. } } catch (HttpException e) { System.err.println("Fatal protocol violation: " + e.getMessage()); e.printStackTrace(); } catch (IOException e) { System.err.println("Fatal transport error: " + e.getMessage()); e.printStackTrace(); } finally { // Release the connection. method.releaseConnection(); } } } ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ---- And here's my console: ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ---- 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 = org.apache.commons.httpclient.DefaultHttpMethodRetryHandler@4b4333 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 = org.apache.commons.httpclient.DefaultHttpMethodRetryHandler@1457cb 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() Method failed: HTTP/1.1 302 Found 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: Mon, 27 Mar 2006 22:46:22 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=2bfabe97101f8c68c4b57a358bc75053; path=/[\r][\n]" DEBUG [httpclient.wire.header] << "Location: http://ebwl.euro-fh-campus.de/campus/index.php?Lernbar=2bfabe97101f8c68c4b57 a358bc75053[\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[]) 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=2bfabe97101f8c68c4b57a358bc75053; $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=2bfabe97101f8c68c4b57 a358bc75053 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 = org.apache.commons.httpclient.DefaultHttpMethodRetryHandler@913750 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/ 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=2bfabe97101f8c68c4b57a358bc75053; $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: Mon, 27 Mar 2006 22:46:22 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: Mon, 27 Mar 2006 22:46:22 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) Anmeldung zum Online-Campus der Europäischen Fernhochschule Hamburg 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. ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ---- Greetings from Hamburg, Germany, Andre --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpclient-user-help@jakarta.apache.org