commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpor...@saguaro.ro
Subject [HttpClient] How to use HttpClient with Form-based Authentication?
Date Wed, 08 Sep 2004 11:31:06 GMT
Ok, I have the Post method again.
Here is the login form page, the FormLoginDemo.java and the logs.
The login form page path is 
http://localhost:8080/logintest/LoginForm.html.

Is still doesn't authenticate.






LoginForm.html:



<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Login Test: Login Form</title>
</head>

<body>
<h1>Login Form</h1>

        Welcome to the login page.  You will have to authenticate to get 
access to the secure area:

    <form id="login_form" method="POST" action="j_security_check">

      Username: <input type="text" name="j_username"><br />
      Password: <input type="password" name="j_password" ><br />
          <br />

      <input type="submit" value="Login">
      <input type="reset" value="Reset">

    </form>

</body>
</html>





FormLoginDemo.java:


import java.io.File;

import org.apache.commons.httpclient.*;
import org.apache.commons.httpclient.cookie.CookiePolicy;
import org.apache.commons.httpclient.cookie.CookieSpec;
import org.apache.commons.httpclient.methods.*;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * <p>
 * A example that demonstrates how HttpClient APIs can be used to perform 
 * form-based logon.
 * </p>
 *
 * @author Oleg Kalnichevski
 *
 */
public class FormLoginDemo
{
 
        static{
                System.setProperty("org.apache.commons.logging.Log", 
"org.apache.commons.logging.impl.SimpleLog");
                System.setProperty(
"org.apache.commons.logging.simplelog.showdatetime", "true");
                System.setProperty(
"org.apache.commons.logging.simplelog.log.httpclient.wire", "debug");   
                System.setProperty(
"org.apache.commons.logging.simplelog.log.org.apache.commons.httpclient", 
"debug");
        }
 
        private static Log log = LogFactory.getLog(FormLoginDemo.class);
 
    static final String LOGON_SITE = "localhost";
    static final int    LOGON_PORT = 8080;

    public FormLoginDemo() {
        super();
    }


    public static void main(String[] args) throws Exception {

        HttpClient client = new HttpClient();
        client.getHostConfiguration().setHost(LOGON_SITE, LOGON_PORT, 
"http");
 client.getParams().setCookiePolicy(CookiePolicy.BROWSER_COMPATIBILITY);

        GetMethod authget = new GetMethod("/logintest/index.html");

        client.executeMethod(authget);
        System.out.println("Login form get: " + 
authget.getStatusLine().toString()); 
        // release any connection resources used by the method 
        authget.releaseConnection();
        // See if we got any cookies
        CookieSpec cookiespec = CookiePolicy.getDefaultSpec();
        Cookie[] initcookies = cookiespec.match(
            LOGON_SITE, LOGON_PORT, "/logintest/", false, 
client.getState().getCookies());
        System.out.println("Initial set of cookies:"); 
        if (initcookies.length == 0) {
            System.out.println("None"); 
        } else {
            for (int i = 0; i < initcookies.length; i++) {
                System.out.println("- " + initcookies[i].toString()); 
            }
        }



 
        PostMethod authpost = new PostMethod("/logintest/");
        // Prepare login parameters
        NameValuePair action   = new NameValuePair("action", 
"j_security_check");
        NameValuePair url      = new NameValuePair("url", "LoginForm.html"
);
        NameValuePair userid   = new NameValuePair("j_username", "admin");
        NameValuePair password = new NameValuePair("j_password", "admin");
        authpost.setRequestBody( 
                  new NameValuePair[] {action, url, userid, password});

        client.executeMethod(authpost);
        System.out.println("Login form post: " + 
authpost.getStatusLine().toString()); 
        // release any connection resources used by the method
        authpost.releaseConnection();
        // See if we got any cookies
        // The only way of telling whether logon succeeded is 
        // by finding a session cookie
        Cookie[] logoncookies = cookiespec.match(
                LOGON_SITE, LOGON_PORT, "/logintest/", false, 
client.getState().getCookies());
        System.out.println("Logon cookies:"); 
        if (logoncookies.length == 0) {
                System.out.println("None"); 
        } else {
                for (int i = 0; i < logoncookies.length; i++) {
                        System.out.println("- " + 
logoncookies[i].toString()); 
        }
 


        int statuscode = authpost.getStatusCode();
        System.out.println("STATUS CODE:"+statuscode);
        if ((statuscode == HttpStatus.SC_MOVED_TEMPORARILY) ||
            (statuscode == HttpStatus.SC_MOVED_PERMANENTLY) ||
            (statuscode == HttpStatus.SC_SEE_OTHER) ||
            (statuscode == HttpStatus.SC_TEMPORARY_REDIRECT)) {
            Header header = authpost.getResponseHeader("location");
            if (header != null) {
                String newuri = header.getValue();
                if ((newuri == null) || (newuri.equals(""))) {
                    newuri = "/";
                }
                System.out.println("Redirect target: " + newuri); 
                GetMethod redirect = new GetMethod(newuri);
                                redirect.setFollowRedirects(true);
                client.executeMethod(redirect);
                System.out.println("Redirect: " + 
redirect.getStatusLine().toString()); 
                // release any connection resources used by the method
                redirect.releaseConnection();  
 
            } else {
                System.out.println("Invalid redirect");
                System.exit(1);
            }
        }
 
 
                //TRY TO GET AN INNER PAGE
                GetMethod description= new GetMethod(
"http://localhost:8080/logintest/secure/securepage.html");
                client.executeMethod(description);
                System.out.println("description: " + 
description.getStatusLine().toString());
                description.releaseConnection();
                }
        }
} 




Logs:



2004/09/08 14:22:16:594 EEST [DEBUG] HttpClient - Java version: 1.3.1
2004/09/08 14:22:16:594 EEST [DEBUG] HttpClient - Java vendor: IBM 
Corporation
2004/09/08 14:22:16:594 EEST [DEBUG] HttpClient - Java class path: 
<removed>
2004/09/08 14:22:16:594 EEST [DEBUG] HttpClient - Operating system name: 
Windows XP
2004/09/08 14:22:16:594 EEST [DEBUG] HttpClient - Operating system 
architecture: x86
2004/09/08 14:22:16:609 EEST [DEBUG] HttpClient - Operating system 
version: 5.1
2004/09/08 14:22:16:609 EEST [DEBUG] HttpClient - SUN 1.2: SUN (DSA 
key/parameter generation; DSA signing; SHA-1, MD5 digests; SecureRandom; 
X.509 certificates; JKS keystore)
2004/09/08 14:22:16:609 EEST [DEBUG] DefaultHttpParams - Set parameter 
http.useragent = Jakarta Commons-HttpClient/3.0-alpha1
2004/09/08 14:22:16:609 EEST [DEBUG] DefaultHttpParams - Set parameter 
http.protocol.version = HTTP/1.1
2004/09/08 14:22:16:625 EEST [DEBUG] DefaultHttpParams - Set parameter 
http.connection-manager.class = class 
org.apache.commons.httpclient.SimpleHttpConnectionManager
2004/09/08 14:22:16:625 EEST [DEBUG] DefaultHttpParams - Set parameter 
http.protocol.cookie-policy = rfc2109
2004/09/08 14:22:16:625 EEST [DEBUG] DefaultHttpParams - Set parameter 
http.protocol.element-charset = US-ASCII
2004/09/08 14:22:16:625 EEST [DEBUG] DefaultHttpParams - Set parameter 
http.protocol.content-charset = ISO-8859-1
2004/09/08 14:22:16:625 EEST [DEBUG] 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]
2004/09/08 14:22:16:656 EEST [DEBUG] DefaultHttpParams - Set parameter 
http.protocol.cookie-policy = compatibility
2004/09/08 14:22:16:719 EEST [DEBUG] wire - >> "GET /logintest/index.html 
HTTP/1.1[\r][\n]"
2004/09/08 14:22:16:719 EEST [DEBUG] HttpMethodBase - Adding Host request 
header
2004/09/08 14:22:16:719 EEST [DEBUG] wire - >> "User-Agent: Jakarta 
Commons-HttpClient/3.0-alpha1[\r][\n]"
2004/09/08 14:22:16:734 EEST [DEBUG] wire - >> "Host: 
localhost:8080[\r][\n]"
2004/09/08 14:22:16:734 EEST [DEBUG] wire - >> "[\r][\n]"
2004/09/08 14:22:16:734 EEST [DEBUG] wire - << "HTTP/1.1 302 Moved 
Temporarily[\r][\n]"
2004/09/08 14:22:16:750 EEST [DEBUG] wire - << "Pragma: No-cache[\r][\n]"
2004/09/08 14:22:16:750 EEST [DEBUG] wire - << "Cache-Control: 
no-cache[\r][\n]"
2004/09/08 14:22:16:750 EEST [DEBUG] wire - << "Expires: Thu, 01 Jan 1970 
00:00:00 GMT[\r][\n]"
2004/09/08 14:22:16:750 EEST [DEBUG] wire - << "Set-Cookie: 
JSESSIONID=5B79C7771463FA9069F85579CFBAD650; Path=/logintest[\r][\n]"
2004/09/08 14:22:16:750 EEST [DEBUG] wire - << "Location: 
http://localhost:8080/logintest/LoginForm.html;jsessionid=5B79C7771463FA9069F85579CFBAD650[\r][\n]"
2004/09/08 14:22:16:750 EEST [DEBUG] wire - << "Content-Length: 0[\r][\n]"
2004/09/08 14:22:16:750 EEST [DEBUG] wire - << "Date: Wed, 08 Sep 2004 
11:22:16 GMT[\r][\n]"
2004/09/08 14:22:16:750 EEST [DEBUG] wire - << "Server: 
Apache-Coyote/1.1[\r][\n]"
2004/09/08 14:22:16:922 EEST [DEBUG] HttpMethodBase - Cookie accepted: 
"JSESSIONID=5B79C7771463FA9069F85579CFBAD650"
2004/09/08 14:22:16:922 EEST [DEBUG] HttpMethodDirector - Redirect 
required
2004/09/08 14:22:16:922 EEST [DEBUG] HttpMethodDirector - Redirect 
requested to location 
'http://localhost:8080/logintest/LoginForm.html;jsessionid=5B79C7771463FA9069F85579CFBAD650'
2004/09/08 14:22:16:922 EEST [DEBUG] HttpMethodDirector - Redirecting from 
'http://localhost:8080/logintest/index.html' to 
'http://localhost:8080/logintest/LoginForm.html;jsessionid=5B79C7771463FA9069F85579CFBAD650
2004/09/08 14:22:16:922 EEST [DEBUG] HttpMethodDirector - Execute redirect 
1 of 100
2004/09/08 14:22:16:922 EEST [DEBUG] HttpMethodBase - Resorting to 
protocol version default close connection policy
2004/09/08 14:22:16:922 EEST [DEBUG] HttpMethodBase - Should NOT close 
connection, using HTTP/1.1
2004/09/08 14:22:16:922 EEST [DEBUG] HttpConnection - Connection is 
locked.  Call to releaseConnection() ignored.
2004/09/08 14:22:16:938 EEST [DEBUG] wire - >> "GET 
/logintest/LoginForm.html;jsessionid=5B79C7771463FA9069F85579CFBAD650 
HTTP/1.1[\r][\n]"
2004/09/08 14:22:16:938 EEST [DEBUG] HttpMethodBase - Adding Host request 
header
2004/09/08 14:22:16:938 EEST [DEBUG] wire - >> "User-Agent: Jakarta 
Commons-HttpClient/3.0-alpha1[\r][\n]"
2004/09/08 14:22:16:938 EEST [DEBUG] wire - >> "Host: 
localhost:8080[\r][\n]"
2004/09/08 14:22:16:938 EEST [DEBUG] wire - >> "Cookie: 
JSESSIONID=5B79C7771463FA9069F85579CFBAD650[\r][\n]"
2004/09/08 14:22:16:938 EEST [DEBUG] wire - >> "[\r][\n]"
2004/09/08 14:22:16:953 EEST [DEBUG] wire - << "HTTP/1.1 200 OK[\r][\n]"
2004/09/08 14:22:16:953 EEST [DEBUG] wire - << "Pragma: No-cache[\r][\n]"
2004/09/08 14:22:16:953 EEST [DEBUG] wire - << "Cache-Control: 
no-cache[\r][\n]"
2004/09/08 14:22:16:953 EEST [DEBUG] wire - << "Expires: Thu, 01 Jan 1970 
00:00:00 GMT[\r][\n]"
2004/09/08 14:22:16:953 EEST [DEBUG] wire - << "ETag: 
W/"713-1094641128390"[\r][\n]"
2004/09/08 14:22:16:953 EEST [DEBUG] wire - << "Last-Modified: Wed, 08 Sep 
2004 10:58:48 GMT[\r][\n]"
2004/09/08 14:22:16:953 EEST [DEBUG] wire - << "Content-Type: 
text/html[\r][\n]"
2004/09/08 14:22:16:953 EEST [DEBUG] wire - << "Content-Length: 
713[\r][\n]"
Login form get: HTTP/1.1 200 OK
2004/09/08 14:22:16:953 EEST [DEBUG] wire - << "Date: Wed, 08 Sep 2004 
11:22:16 GMT[\r][\n]"
2004/09/08 14:22:16:953 EEST [DEBUG] wire - << "Server: 
Apache-Coyote/1.1[\r][\n]"
2004/09/08 14:22:16:953 EEST [DEBUG] HttpMethodBase - Resorting to 
protocol version default close connection policyInitial set of cookies:
- JSESSIONID=5B79C7771463FA9069F85579CFBAD650

2004/09/08 14:22:16:953 EEST [DEBUG] HttpMethodBase - Should NOT close 
connection, using HTTP/1.1
2004/09/08 14:22:16:953 EEST [DEBUG] HttpConnection - Releasing connection 
back to connection manager.
2004/09/08 14:22:16:969 EEST [DEBUG] wire - >> "POST /logintest/ 
HTTP/1.1[\r][\n]"
2004/09/08 14:22:16:969 EEST [DEBUG] HttpMethodBase - Adding Host request 
header
2004/09/08 14:22:16:969 EEST [DEBUG] HttpMethodBase - Default charset 
used: ISO-8859-1
2004/09/08 14:22:16:969 EEST [DEBUG] HttpMethodBase - Default charset 
used: ISO-8859-1
2004/09/08 14:22:16:969 EEST [DEBUG] wire - >> "User-Agent: Jakarta 
Commons-HttpClient/3.0-alpha1[\r][\n]"
2004/09/08 14:22:16:969 EEST [DEBUG] wire - >> "Host: 
localhost:8080[\r][\n]"
2004/09/08 14:22:16:969 EEST [DEBUG] wire - >> "Cookie: 
JSESSIONID=5B79C7771463FA9069F85579CFBAD650[\r][\n]"
2004/09/08 14:22:16:969 EEST [DEBUG] wire - >> "Content-Length: 
76[\r][\n]"
2004/09/08 14:22:16:969 EEST [DEBUG] wire - >> "Content-Type: 
application/x-www-form-urlencoded[\r][\n]"
2004/09/08 14:22:17:000 EEST [DEBUG] wire - >> "[\r][\n]"
2004/09/08 14:22:17:000 EEST [DEBUG] HttpMethodBase - Default charset 
used: ISO-8859-1
2004/09/08 14:22:17:016 EEST [DEBUG] EntityEnclosingMethod - Request body 
sent
2004/09/08 14:22:17:016 EEST [DEBUG] wire - << "HTTP/1.1 302 Moved 
Temporarily[\r][\n]"
2004/09/08 14:22:17:016 EEST [DEBUG] wire - << "Location: 
http://localhost:8080/logintest/LoginForm.html[\r][\n]"
2004/09/08 14:22:17:016 EEST [DEBUG] wire - << "Content-Length: 0[\r][\n]"
2004/09/08 14:22:17:016 EEST [DEBUG] wire - << "Date: Wed, 08 Sep 2004 
11:22:16 GMT[\r][\n]"
2004/09/08 14:22:17:047 EEST [DEBUG] wire - << "Server: 
Apache-Coyote/1.1[\r][\n]"
2004/09/08 14:22:17:047 EEST [DEBUG] HttpMethodDirector - Redirect 
required
Login form post: HTTP/1.1 302 Moved Temporarily
2004/09/08 14:22:17:047 EEST [INFO] HttpMethodDirector - Redirect 
requested but followRedirects is disabled
2004/09/08 14:22:17:047 EEST [DEBUG] HttpMethodBase - Resorting to 
protocol version default close connection policy
2004/09/08 14:22:17:047 EEST [DEBUG] HttpMethodBase - Should NOT close 
connection, using HTTP/1.1
Logon cookies:
- JSESSIONID=5B79C7771463FA9069F85579CFBAD650
STATUS CODE:302
Redirect target: http://localhost:8080/logintest/LoginForm.html
2004/09/08 14:22:17:047 EEST [DEBUG] HttpConnection - Releasing connection 
back to connection manager.
2004/09/08 14:22:17:062 EEST [DEBUG] wire - >> "GET 
/logintest/LoginForm.html HTTP/1.1[\r][\n]"
2004/09/08 14:22:17:062 EEST [DEBUG] HttpMethodBase - Adding Host request 
header
2004/09/08 14:22:17:062 EEST [DEBUG] wire - >> "User-Agent: Jakarta 
Commons-HttpClient/3.0-alpha1[\r][\n]"
2004/09/08 14:22:17:062 EEST [DEBUG] wire - >> "Host: 
localhost:8080[\r][\n]"
2004/09/08 14:22:17:062 EEST [DEBUG] wire - >> "Cookie: 
JSESSIONID=5B79C7771463FA9069F85579CFBAD650[\r][\n]"
2004/09/08 14:22:17:062 EEST [DEBUG] wire - >> "[\r][\n]"
2004/09/08 14:22:17:078 EEST [DEBUG] wire - << "HTTP/1.1 200 OK[\r][\n]"
2004/09/08 14:22:17:094 EEST [DEBUG] wire - << "Pragma: No-cache[\r][\n]"
2004/09/08 14:22:17:094 EEST [DEBUG] wire - << "Cache-Control: 
no-cache[\r][\n]"
2004/09/08 14:22:17:109 EEST [DEBUG] wire - << "Expires: Thu, 01 Jan 1970 
00:00:00 GMT[\r][\n]"
2004/09/08 14:22:17:109 EEST [DEBUG] wire - << "ETag: 
W/"713-1094641128390"[\r][\n]"
2004/09/08 14:22:17:109 EEST [DEBUG] wire - << "Last-Modified: Wed, 08 Sep 
2004 10:58:48 GMT[\r][\n]"
2004/09/08 14:22:17:109 EEST [DEBUG] wire - << "Content-Type: 
text/html[\r][\n]"
2004/09/08 14:22:17:109 EEST [DEBUG] wire - << "Content-Length: 
713[\r][\n]"
2004/09/08 14:22:17:109 EEST [DEBUG] wire - << "Date: Wed, 08 Sep 2004 
11:22:16 GMT[\r][\n]"
2004/09/08 14:22:17:109 EEST [DEBUG] wire - << "Server: 
Apache-Coyote/1.1[\r][\n]"
Redirect: HTTP/1.1 200 OK
2004/09/08 14:22:17:109 EEST [DEBUG] HttpMethodBase - Resorting to 
protocol version default close connection policy
2004/09/08 14:22:17:109 EEST [DEBUG] HttpMethodBase - Should NOT close 
connection, using HTTP/1.1
2004/09/08 14:22:17:109 EEST [DEBUG] HttpConnection - Releasing connection 
back to connection manager.
2004/09/08 14:22:17:109 EEST [DEBUG] wire - >> "GET 
/logintest/secure/securepage.html HTTP/1.1[\r][\n]"
2004/09/08 14:22:17:109 EEST [DEBUG] HttpMethodBase - Adding Host request 
header
2004/09/08 14:22:17:109 EEST [DEBUG] wire - >> "User-Agent: Jakarta 
Commons-HttpClient/3.0-alpha1[\r][\n]"
2004/09/08 14:22:17:141 EEST [DEBUG] wire - >> "Host: 
localhost:8080[\r][\n]"
2004/09/08 14:22:17:141 EEST [DEBUG] wire - >> "Cookie: 
JSESSIONID=5B79C7771463FA9069F85579CFBAD650[\r][\n]"
2004/09/08 14:22:17:141 EEST [DEBUG] wire - >> "[\r][\n]"
2004/09/08 14:22:17:141 EEST [DEBUG] wire - << "HTTP/1.1 302 Moved 
Temporarily[\r][\n]"
2004/09/08 14:22:17:141 EEST [DEBUG] wire - << "Pragma: No-cache[\r][\n]"
2004/09/08 14:22:17:141 EEST [DEBUG] wire - << "Cache-Control: 
no-cache[\r][\n]"
2004/09/08 14:22:17:156 EEST [DEBUG] wire - << "Expires: Thu, 01 Jan 1970 
00:00:00 GMT[\r][\n]"
2004/09/08 14:22:17:156 EEST [DEBUG] wire - << "Location: 
http://localhost:8080/logintest/LoginForm.html[\r][\n]"
2004/09/08 14:22:17:156 EEST [DEBUG] wire - << "Content-Length: 0[\r][\n]"
2004/09/08 14:22:17:156 EEST [DEBUG] wire - << "Date: Wed, 08 Sep 2004 
11:22:16 GMT[\r][\n]"
2004/09/08 14:22:17:156 EEST [DEBUG] wire - << "Server: 
Apache-Coyote/1.1[\r][\n]"
2004/09/08 14:22:17:156 EEST [DEBUG] HttpMethodDirector - Redirect 
required
2004/09/08 14:22:17:172 EEST [DEBUG] HttpMethodDirector - Redirect 
requested to location 'http://localhost:8080/logintest/LoginForm.html'
2004/09/08 14:22:17:172 EEST [DEBUG] HttpMethodDirector - Redirecting from 
'http://localhost:8080/logintest/secure/securepage.html' to 
'http://localhost:8080/logintest/LoginForm.html
2004/09/08 14:22:17:172 EEST [DEBUG] HttpMethodDirector - Execute redirect 
1 of 100
2004/09/08 14:22:17:172 EEST [DEBUG] HttpMethodBase - Resorting to 
protocol version default close connection policy
2004/09/08 14:22:17:172 EEST [DEBUG] HttpMethodBase - Should NOT close 
connection, using HTTP/1.1
2004/09/08 14:22:17:172 EEST [DEBUG] HttpConnection - Connection is 
locked.  Call to releaseConnection() ignored.
2004/09/08 14:22:17:172 EEST [DEBUG] wire - >> "GET 
/logintest/LoginForm.html HTTP/1.1[\r][\n]"
2004/09/08 14:22:17:172 EEST [DEBUG] HttpMethodBase - Adding Host request 
header
2004/09/08 14:22:17:172 EEST [DEBUG] wire - >> "User-Agent: Jakarta 
Commons-HttpClient/3.0-alpha1[\r][\n]"
2004/09/08 14:22:17:172 EEST [DEBUG] wire - >> "Host: 
localhost:8080[\r][\n]"
2004/09/08 14:22:17:172 EEST [DEBUG] wire - >> "Cookie: 
JSESSIONID=5B79C7771463FA9069F85579CFBAD650[\r][\n]"
2004/09/08 14:22:17:172 EEST [DEBUG] wire - >> "[\r][\n]"
2004/09/08 14:22:17:172 EEST [DEBUG] wire - << "HTTP/1.1 200 OK[\r][\n]"
description: HTTP/1.1 200 OK
2004/09/08 14:22:17:172 EEST [DEBUG] wire - << "Pragma: No-cache[\r][\n]"
2004/09/08 14:22:17:172 EEST [DEBUG] wire - << "Cache-Control: 
no-cache[\r][\n]"
2004/09/08 14:22:17:172 EEST [DEBUG] wire - << "Expires: Thu, 01 Jan 1970 
00:00:00 GMT[\r][\n]"
2004/09/08 14:22:17:172 EEST [DEBUG] wire - << "ETag: 
W/"713-1094641128390"[\r][\n]"
2004/09/08 14:22:17:172 EEST [DEBUG] wire - << "Last-Modified: Wed, 08 Sep 
2004 10:58:48 GMT[\r][\n]"
2004/09/08 14:22:17:172 EEST [DEBUG] wire - << "Content-Type: 
text/html[\r][\n]"
2004/09/08 14:22:17:172 EEST [DEBUG] wire - << "Content-Length: 
713[\r][\n]"
2004/09/08 14:22:17:172 EEST [DEBUG] wire - << "Date: Wed, 08 Sep 2004 
11:22:16 GMT[\r][\n]"
2004/09/08 14:22:17:172 EEST [DEBUG] wire - << "Server: 
Apache-Coyote/1.1[\r][\n]"
2004/09/08 14:22:17:172 EEST [DEBUG] HttpMethodBase - Resorting to 
protocol version default close connection policy
2004/09/08 14:22:17:172 EEST [DEBUG] HttpMethodBase - Should NOT close 
connection, using HTTP/1.1
2004/09/08 14:22:17:172 EEST [DEBUG] HttpConnection - Releasing connection 
back to connection manager.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message