Hi.

Thanks for all the suggestions. I tried replacing client.getHostConfiguration()..with method.getHostConfiguration butit didn't seem to make any difference. I changed "method" back to "client" and retried and for the second attempt it did authenticate me - but not for the first.

Initially I had this:
retryhandler.setRetryCount(3);
but then I changed the "3" to "1". Again the first try was refused but the second got through.


What I would like to understand is which host configuration is being accessed by client.getHostConfiguration().., the proxy host, the ultimate destination or me??

I was using a logger - and I'm appending the output with the retry at "1" (not that it's any shorter!). Is there something in the order of the code that causes a refusal the first time around that gets fixed the second time? Currently my code (comments stripped out) looks like this:

public class MyHttpClient {

 private static String url = "http://www.uct.ac.za/";;

public static void main(String[] args) {
HttpClient client = new HttpClient();
GetMethod method = new GetMethod(url);
client.getHostConfiguration().setProxy("XXXX", XXXX);
Credentials creds = new UsernamePasswordCredentials("XXXX", "XXXX");
client.getState().setProxyCredentials("XXXX", "cache.ru.ac.za", creds);
Logger logger = Logger.getLogger(MyHttpClient.class);
BasicConfigurator.configure();
logger.info("Entering application.");
DefaultMethodRetryHandler retryhandler = new DefaultMethodRetryHandler();
retryhandler.setRequestSentRetryEnabled(false);
retryhandler.setRetryCount(1);
method.setMethodRetryHandler(retryhandler);


   try {
     int statusCode = client.executeMethod(method);

     if (statusCode != HttpStatus.SC_OK) {
       System.err.println("Method failed: " + method.getStatusLine());
     }

     byte[] responseBody = method.getResponseBody();

     System.out.println(new String(responseBody));

   } catch (IOException e) {
     System.err.println("Failed to download file.");
     e.printStackTrace();
   } finally {
     method.releaseConnection();
   }
 }
}

The error log follows.

Thanks so much.

Madeleine

468 [main] INFO MyHttpClient - Entering application.
484 [main] DEBUG org.apache.commons.httpclient.HttpClient - enter HttpClient.executeMethod(HttpMethod)
484 [main] DEBUG org.apache.commons.httpclient.HttpClient - enter HttpClient.executeMethod(HostConfiguration,HttpMethod,HttpState)
515 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.open()
547 [main] DEBUG org.apache.commons.httpclient.HttpConnection - HttpConnection.setSoTimeout(0)
547 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.execute(HttpState, HttpConnection)
547 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - Execute loop try 1
547 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.processRequest(HttpState, HttpConnection)
547 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - Attempt number 1 to process request
547 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.writeRequest(HttpState, HttpConnection)
547 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.writeRequestLine(HttpState, HttpConnection)
547 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.generateRequestLine(HttpConnection, String, String, String, String)
562 [main] DEBUG httpclient.wire.header - >> "GET http://www.uct.ac.za/ HTTP/1.1[\r][\n]"
562 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.print(String)
578 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[])
578 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[], int, int)
578 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.writeRequestHeaders(HttpState,HttpConnection)
578 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.addRequestHeaders(HttpState, HttpConnection)
578 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.addUserAgentRequestHeaders(HttpState, HttpConnection)
578 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.addHostRequestHeader(HttpState, HttpConnection)
578 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - Adding Host request header
578 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.addCookieRequestHeader(HttpState, HttpConnection)
593 [main] DEBUG org.apache.commons.httpclient.HttpState - enter HttpState.getCookies()
593 [main] DEBUG org.apache.commons.httpclient.cookie.CookieSpec - enter CookieSpecBase.match(String, int, String, boolean, Cookie[])
593 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.addAuthorizationRequestHeader(HttpState, HttpConnection)
593 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.addProxyAuthorizationRequestHeader(HttpState, HttpConnection)
593 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.addProxyConnectionHeader(HttpState, HttpConnection)
593 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.addContentLengthRequestHeader(HttpState, HttpConnection)
593 [main] DEBUG httpclient.wire.header - >> "User-Agent: Jakarta Commons-HttpClient/2.0.1[\r][\n]"
593 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.print(String)
593 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[])
593 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[], int, int)
593 [main] DEBUG httpclient.wire.header - >> "Host: www.uct.ac.za[\r][\n]"
593 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.print(String)
593 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[])
593 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[], int, int)
593 [main] DEBUG httpclient.wire.header - >> "Proxy-Connection: Keep-Alive[\r][\n]"
593 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.print(String)
593 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[])
593 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[], int, int)
593 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.writeLine()
593 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[])
593 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[], int, int)
593 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.flushRequestOutputStream()
593 [main] DEBUG httpclient.wire.header - >> "[\r][\n]"
593 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.flushRequestOutputStream()
593 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.readResponse(HttpState, HttpConnection)
593 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.readStatusLine(HttpState, HttpConnection)
593 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.readLine()
609 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readLine()
609 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readRawLine()
609 [main] DEBUG httpclient.wire.header - << "HTTP/1.0 407 Proxy Authentication Required[\r][\n]"
609 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.readResponseHeaders(HttpState,HttpConnection)
609 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.getResponseInputStream()
609 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HeaderParser.parseHeaders(HttpConnection, HeaderGroup)
609 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readLine()
609 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readRawLine()
625 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readLine()
625 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readRawLine()
625 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readLine()
625 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readRawLine()
625 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readLine()
625 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readRawLine()
625 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readLine()
625 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readRawLine()
625 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readLine()
625 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readRawLine()
625 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readLine()
625 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readRawLine()
625 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readLine()
625 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readRawLine()
625 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readLine()
625 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readRawLine()
625 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readLine()
625 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readRawLine()
625 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readLine()
625 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readRawLine()
625 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readLine()
625 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readRawLine()
625 [main] DEBUG httpclient.wire.header - << "Server: squid/2.5.STABLE6[\r][\n]"
625 [main] DEBUG httpclient.wire.header - << "Mime-Version: 1.0[\r][\n]"
625 [main] DEBUG httpclient.wire.header - << "Date: Fri, 08 Oct 2004 17:27:29 GMT[\r][\n]"
625 [main] DEBUG httpclient.wire.header - << "Content-Type: text/html[\r][\n]"
625 [main] DEBUG httpclient.wire.header - << "Content-Length: 1935[\r][\n]"
625 [main] DEBUG httpclient.wire.header - << "Expires: Fri, 08 Oct 2004 17:27:29 GMT[\r][\n]"
625 [main] DEBUG httpclient.wire.header - << "X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0[\r][\n]"
625 [main] DEBUG httpclient.wire.header - << "Proxy-Authenticate: Basic realm="Rhodes University Web Proxy"[\r][\n]"
625 [main] DEBUG httpclient.wire.header - << "X-Cache: MISS from cache.ru.ac.za[\r][\n]"
640 [main] DEBUG httpclient.wire.header - << "X-Cache-Lookup: NONE from cache.ru.ac.za:3128[\r][\n]"
640 [main] DEBUG httpclient.wire.header - << "Proxy-Connection: keep-alive[\r][\n]"
640 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.processResponseHeaders(HttpState, HttpConnection)
640 [main] DEBUG org.apache.commons.httpclient.methods.GetMethod - enter GetMethod.readResponseBody(HttpState, HttpConnection)
640 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.readResponseBody(HttpState, HttpConnection)
640 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.readResponseBody(HttpState, HttpConnection)
640 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.getResponseInputStream()
640 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - Authorization required
640 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.processAuthenticationResponse(HttpState, HttpConnection)
640 [main] DEBUG org.apache.commons.httpclient.auth.HttpAuthenticator - enter HttpAuthenticator.selectAuthScheme(Header[])
656 [main] DEBUG org.apache.commons.httpclient.auth.HttpAuthenticator - enter HttpAuthenticator.authenticateProxy(AuthScheme, HttpMethod, HttpState)
656 [main] DEBUG org.apache.commons.httpclient.auth.HttpAuthenticator - Authenticating with the 'Rhodes University Web Proxy' authentication realm at cache.ru.ac.za
656 [main] DEBUG org.apache.commons.httpclient.HttpState - enter HttpState.getCredentials(String, String
656 [main] DEBUG org.apache.commons.httpclient.auth.BasicScheme - enter BasicScheme.authenticate(Credentials, String, String)
656 [main] DEBUG org.apache.commons.httpclient.auth.BasicScheme - enter BasicScheme.authenticate(UsernamePasswordCredentials)
672 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - HttpMethodBase.execute(): Server demanded authentication credentials, will try again.
672 [main] DEBUG httpclient.wire.content - << "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd";>[\n]"
672 [main] DEBUG httpclient.wire.content - << "<html><head>[\n]"
672 [main] DEBUG httpclient.wire.content - << "<title>ERROR: The requested URL could not be retrieved</title>[\n]"
672 [main] DEBUG httpclient.wire.content - << "<style>[\n]"
672 [main] DEBUG httpclient.wire.content - << "body { background: #cccccc; }[\n]"
672 [main] DEBUG httpclient.wire.content - << "td { background: #ffffff; border: 1px solid #000000; }[\n]"
672 [main] DEBUG httpclient.wire.content - << "td.foot { background: transparent; border: none; font-size: xx-small; color: #666666; padding-left: 0px; padding-top: 1px; }[\n]"
672 [main] DEBUG httpclient.wire.content - << "img { float: right; display: inline; }[\n]"
672 [main] DEBUG httpclient.wire.content - << "</style>[\n]"
672 [main] DEBUG httpclient.wire.content - << "</head>[\n]"
672 [main] DEBUG httpclient.wire.content - << "<body>[\n]"
672 [main] DEBUG httpclient.wire.content - << "<table width="600" align="center" border="0" cellpadding="10">[\n]"
672 [main] DEBUG httpclient.wire.content - << "<tr><td>[\n]"
672 [main] DEBUG httpclient.wire.content - << "[\n]"
672 [main] DEBUG httpclient.wire.content - << "<H1>ERROR</H1>[\n]"
672 [main] DEBUG httpclient.wire.content - << "<H2>Cache Access Denied</H2>[\n]"
672 [main] DEBUG httpclient.wire.content - << "<HR noshade size="1px">[\n]"
672 [main] DEBUG httpclient.wire.content - << "<P>[\n]"
672 [main] DEBUG httpclient.wire.content - << "While trying to retrieve the URL:[\n]"
672 [main] DEBUG httpclient.wire.content - << "<A HREF="http://www.uct.ac.za/";>http://www.uct.ac.za/</A>[\n]"
672 [main] DEBUG httpclient.wire.content - << "<P>[\n]"
672 [main] DEBUG httpclient.wire.content - << "The following error was encountered:[\n]"
672 [main] DEBUG httpclient.wire.content - << "<UL>[\n]"
672 [main] DEBUG httpclient.wire.content - << "<LI>[\n]"
672 [main] DEBUG httpclient.wire.content - << "<STRONG>[\n]"
672 [main] DEBUG httpclient.wire.content - << "Cache Access Denied.[\n]"
672 [main] DEBUG httpclient.wire.content - << "</STRONG>[\n]"
672 [main] DEBUG httpclient.wire.content - << "</UL>[\n]"
672 [main] DEBUG httpclient.wire.content - << "</P>[\n]"
672 [main] DEBUG httpclient.wire.content - << "[\n]"
672 [main] DEBUG httpclient.wire.content - << "<P>Sorry, you are not currently allowed to request:[\n]"
672 [main] DEBUG httpclient.wire.content - << "<PRE> http://www.uct.ac.za/</PRE>[\n]"
672 [main] DEBUG httpclient.wire.content - << "from this cache until you have authenticated yourself.[\n]"
672 [main] DEBUG httpclient.wire.content - << "</P>[\n]"
672 [main] DEBUG httpclient.wire.content - << "[\n]"
672 [main] DEBUG httpclient.wire.content - << "<p>[\n]"
672 [main] DEBUG httpclient.wire.content - << "You should use the same username and password that you use to access y"
672 [main] DEBUG httpclient.wire.content - << "our[\n]"
672 [main] DEBUG httpclient.wire.content - << "e-mail when authenticating against this proxy server.[\n]"
672 [main] DEBUG httpclient.wire.content - << "</p>[\n]"
672 [main] DEBUG httpclient.wire.content - << "<p>[\n]"
672 [main] DEBUG httpclient.wire.content - << "Students can change their passwords at the Student Bureau. Staff members[\n]"
672 [main] DEBUG httpclient.wire.content - << "can change their passwords <a href="https://imap.ru.ac.za/systems/staff_imap_password_change.php";>online</a>.[\n]"
672 [main] DEBUG httpclient.wire.content - << "</p>[\n]"
672 [main] DEBUG httpclient.wire.content - << "<P>[\n]"
672 [main] DEBUG httpclient.wire.content - << "You need to use Netscape version 2.0 or greater, or Microsoft Internet[\n]"
672 [main] DEBUG httpclient.wire.content - << "Explorer 3.0, or an HTTP/1.1 compliant browser for this to work. Please[\n]"
672 [main] DEBUG httpclient.wire.content - << "contact the <A HREF="mailto:support.ac.za?subject=ERR_CACHE_ACCESS_DENIED+146.231.122.17";>Software Support</a> if you have[\n]"
672 [main] DEBUG httpclient.wire.content - << "difficulties authenticating.[\n]"
672 [main] DEBUG httpclient.wire.content - << "</P>[\n]"
672 [main] DEBUG httpclient.wire.content - << "[\n]"
687 [main] DEBUG httpclient.wire.content - << "<img width="120" height="58" src="http://www.ru.ac.za/includes/graphics/rulogotiny.gif"; alt="Rhodes">[\n]"
687 [main] DEBUG httpclient.wire.content - << "</td></tr>[\n]"
687 [main] DEBUG httpclient.wire.content - << "<tr><td class="foot">ERR_CACHE_ACCESS_DENIED</td></tr>[\n]"
687 [main] DEBUG httpclient.wire.content - << "</table>[\n]"
687 [main] DEBUG httpclient.wire.content - << "</body>[\n]"
687 [main] DEBUG httpclient.wire.content - << "</html>[\n]"
687 [main] DEBUG httpclient.wire.content - << "[\n]"
687 [main] DEBUG httpclient.wire.content - << "<BR clear="all">[\n]"
687 [main] DEBUG httpclient.wire.content - << "<HR noshade size="1px">[\n]"
687 [main] DEBUG httpclient.wire.content - << "<ADDRESS>[\n]"
687 [main] DEBUG httpclient.wire.content - << "Generated Fri, 08 Oct 2004 17:27:29 GMT by cache.ru.ac.za (squid/2.5.STABLE6)[\n]"
687 [main] DEBUG httpclient.wire.content - << "</ADDRESS>[\n]"
687 [main] DEBUG httpclient.wire.content - << "</BODY></HTML>[\n]"
687 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - Should NOT close connection in response to Proxy-Connection: keep-alive


687 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - Execute loop try 2
687 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.processRequest(HttpState, HttpConnection)
687 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - Attempt number 1 to process request
687 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.writeRequest(HttpState, HttpConnection)
687 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.writeRequestLine(HttpState, HttpConnection)
687 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.generateRequestLine(HttpConnection, String, String, String, String)
687 [main] DEBUG httpclient.wire.header - >> "GET http://www.uct.ac.za/ HTTP/1.0[\r][\n]"
687 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.print(String)
687 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[])
687 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[], int, int)
687 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.writeRequestHeaders(HttpState,HttpConnection)
687 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.addRequestHeaders(HttpState, HttpConnection)
687 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.addUserAgentRequestHeaders(HttpState, HttpConnection)
687 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.addHostRequestHeader(HttpState, HttpConnection)
687 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - Request to add Host header ignored: header already added
687 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.addCookieRequestHeader(HttpState, HttpConnection)
687 [main] DEBUG org.apache.commons.httpclient.HttpState - enter HttpState.getCookies()
687 [main] DEBUG org.apache.commons.httpclient.cookie.CookieSpec - enter CookieSpecBase.match(String, int, String, boolean, Cookie[])
687 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.addAuthorizationRequestHeader(HttpState, HttpConnection)
687 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.addProxyAuthorizationRequestHeader(HttpState, HttpConnection)
687 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.addProxyConnectionHeader(HttpState, HttpConnection)
687 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.addContentLengthRequestHeader(HttpState, HttpConnection)
687 [main] DEBUG httpclient.wire.header - >> "User-Agent: Jakarta Commons-HttpClient/2.0.1[\r][\n]"
687 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.print(String)
687 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[])
687 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[], int, int)
687 [main] DEBUG httpclient.wire.header - >> "Host: www.uct.ac.za[\r][\n]"
687 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.print(String)
687 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[])
687 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[], int, int)
687 [main] DEBUG httpclient.wire.header - >> "Proxy-Authorization: Basic ZHNtdzpiMW5rMWU=[\r][\n]"
687 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.print(String)
687 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[])
687 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[], int, int)
687 [main] DEBUG httpclient.wire.header - >> "Proxy-Connection: Keep-Alive[\r][\n]"
687 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.print(String)
687 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[])
687 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[], int, int)
687 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.writeLine()
687 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[])
687 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[], int, int)
687 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.flushRequestOutputStream()
687 [main] DEBUG httpclient.wire.header - >> "[\r][\n]"
687 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.flushRequestOutputStream()
687 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.readResponse(HttpState, HttpConnection)
687 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.readStatusLine(HttpState, HttpConnection)
687 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.readLine()
687 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readLine()
687 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readRawLine()
687 [main] DEBUG httpclient.wire.header - << "HTTP/1.0 200 OK[\r][\n]"
703 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.readResponseHeaders(HttpState,HttpConnection)
703 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.getResponseInputStream()
703 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HeaderParser.parseHeaders(HttpConnection, HeaderGroup)
703 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readLine()
703 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readRawLine()
703 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readLine()
703 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readRawLine()
703 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readLine()
703 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readRawLine()
703 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readLine()
703 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readRawLine()
703 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readLine()
703 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readRawLine()
703 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readLine()
703 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readRawLine()
703 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readLine()
703 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readRawLine()
703 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readLine()
703 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readRawLine()
703 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readLine()
703 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readRawLine()
703 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readLine()
703 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readRawLine()
703 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readLine()
703 [main] DEBUG org.apache.commons.httpclient.HttpParser - enter HttpParser.readRawLine()
703 [main] DEBUG httpclient.wire.header - << "Date: Fri, 08 Oct 2004 14:46:10 GMT[\r][\n]"
703 [main] DEBUG httpclient.wire.header - << "Server: Apache/1.3.29 (Unix) mod_ssl/2.8.16 OpenSSL/0.9.7c mod_auth_pam/1.0a DAV/1.0.3 PHP/4.3.4[\r][\n]"
703 [main] DEBUG httpclient.wire.header - << "X-Powered-By: PHP/4.3.4[\r][\n]"
703 [main] DEBUG httpclient.wire.header - << "Content-Type: text/html[\r][\n]"
703 [main] DEBUG httpclient.wire.header - << "X-Cache: HIT from cache.ru.ac.za[\r][\n]"
703 [main] DEBUG httpclient.wire.header - << "X-Cache-Lookup: HIT from cache.ru.ac.za:3128[\r][\n]"
703 [main] DEBUG httpclient.wire.header - << "Age: 9679[\r][\n]"
703 [main] DEBUG httpclient.wire.header - << "X-Cache: HIT from cache.ru.ac.za[\r][\n]"
703 [main] DEBUG httpclient.wire.header - << "X-Cache-Lookup: HIT from cache.ru.ac.za:3128[\r][\n]"
703 [main] DEBUG httpclient.wire.header - << "Proxy-Connection: close[\r][\n]"
718 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.processResponseHeaders(HttpState, HttpConnection)
718 [main] DEBUG org.apache.commons.httpclient.methods.GetMethod - enter GetMethod.readResponseBody(HttpState, HttpConnection)
718 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.readResponseBody(HttpState, HttpConnection)
718 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.readResponseBody(HttpState, HttpConnection)
718 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.getResponseInputStream()
718 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.canResponseHaveBody(int)
718 [main] WARN org.apache.commons.httpclient.HttpMethodBase - Response content length is not known
718 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - Force-close connection: true
718 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - Buffering response body
718 [main] DEBUG httpclient.wire.content - << "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">[\r][\n]"
718 [main] DEBUG httpclient.wire.content - << "<html>[\r][\n]"
718 [main] DEBUG httpclient.wire.content - << "<head>[\r][\n]"
718 [main] DEBUG httpclient.wire.content - << "<title>University of Cape Town</title>[\r][\n]"
718 [main] DEBUG httpclient.wire.content - << "<meta name="description" content="Site of the University of Cape Town">[\r][\n]"
718 [main] DEBUG httpclient.wire.content - << "<meta name="keywords" content="university of Cape Town tertiary education south africa degrees diplomas postgraduate undergraduate africa studies law science humanities health business engineering">[\r][\n]"
718 [main] DEBUG httpclient.wire.content - << "</head>[\r][\n]"
718 [main] DEBUG httpclient.wire.content - << "<script language="javascript">[0x9][\r][\n]"
718 [main] DEBUG httpclient.wire.content - << "[\r][\n]"
718 [main] DEBUG httpclient.wire.content - << "[0x9]if (navigator.appName.indexOf('Netscape') != -1) {[\r][\n]"
718 [main] DEBUG httpclient.wire.content - << "[0x9][0x9]if(navigator.appVersion == "5.0 (Windows; en-US)"){[\r][\n]"
718 [main] DEBUG httpclient.wire.content - << "[0x9][0x9][\r][\n]"
718 [main] DEBUG httpclient.wire.content - << "[0x9][0x9]document.write("<frameset rows=56,* framespacing=0 border=0 frameborder=0><frame name=top src=top.php?n=new scrolling=no frameborder=0 noresize><frame name=main src=main.php?n=new scrolling=auto frameborder=0 noresize></frameset>")[0x9][0x9][\r][\n]"
718 [main] DEBUG httpclient.wire.content - << "[0x9][0x9][\r][\n]"
718 [main] DEBUG httpclient.wire.content - << "[0x9][0x9]}else{[\r][\n]"
718 [main] DEBUG httpclient.wire.content - << "[0x9][0x9]document.write("<frameset rows=58,* framespacing=0 border=0 frameborder=0><frame name=top src=top.php?n=new scrolling=no frameborder=0 noresize><frame name=main src=main.php?n=new scrolling=auto frameborder=0 noresize></frameset>")[\r][\n]"
718 [main] DEBUG httpclient.wire.content - << "[0x9][0x9]}[\r][\n]"
718 [main] DEBUG httpclient.wire.content - << "[\r][\n]"
718 [main] DEBUG httpclient.wire.content - << "[0x9]}[\r][\n]"
718 [main] DEBUG httpclient.wire.content - << "[\r][\n]"
718 [main] DEBUG httpclient.wire.content - << "[0x9][0x9]else {document.write("<frameset rows=56,* framespacing=0 border=0 frameborder=0><frame name=top src=top.php?n=new scrolling=no frameborder=0 noresize><frame name=main src=main.php?n=new scrolling=auto frameborder=0 noresize></frameset>")[\r][\n]"
718 [main] DEBUG httpclient.wire.content - << "[\r][\n]"
718 [main] DEBUG httpclient.wire.content - << "[0x9]};[\r][\n]"
718 [main] DEBUG httpclient.wire.content - << "[\r][\n]"
718 [main] DEBUG httpclient.wire.content - << "</script>[\r][\n]"
718 [main] DEBUG httpclient.wire.content - << "</html>"
718 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - Should force-close connection.
718 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.close()
718 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.closeSockedAndStreams()
718 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.releaseConnection()
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>University of Cape Town</title>
<meta name="description" content="Site of the University of Cape Town">
<meta name="keywords" content="university of Cape Town tertiary education south africa degrees diplomas postgraduate undergraduate africa studies law science humanities health business engineering">
</head>
<script language="javascript">


if (navigator.appName.indexOf('Netscape') != -1) {
if(navigator.appVersion == "5.0 (Windows; en-US)"){
document.write("<frameset rows=56,* framespacing=0 border=0 frameborder=0><frame name=top src=top.php?n=new scrolling=no frameborder=0 noresize><frame name=main src=main.php?n=new scrolling=auto frameborder=0 noresize></frameset>") }else{
document.write("<frameset rows=58,* framespacing=0 border=0 frameborder=0><frame name=top src=top.php?n=new scrolling=no frameborder=0 noresize><frame name=main src=main.php?n=new scrolling=auto frameborder=0 noresize></frameset>")
}


   }

else {document.write("<frameset rows=56,* framespacing=0 border=0 frameborder=0><frame name=top src=top.php?n=new scrolling=no frameborder=0 noresize><frame name=main src=main.php?n=new scrolling=auto frameborder=0 noresize></frameset>")

   };

</script>
</html>


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to