Hopefully this has what you need:

DEBUG (04/10) 17:10:52
[org.apache.commons.httpclient.util.IdleConnectionHandler]: Checking for
connections, idleTimeout: 12078618
32171
DEBUG (04/10) 17:10:58
[org.apache.commons.httpclient.params.DefaultHttpParams]: Set parameter
http.protocol.expect-continue = tru
e
DEBUG (04/10) 17:10:58
[org.apache.commons.httpclient.MultiThreadedHttpConnectionManager]:
HttpConnectionManager.getConnection:  c
onfig =
HostConfiguration[host=http://cn=Blackboard,ou=webapps,o=stonewaremssb01
.stone-ware.com], timeout = 0
DEBUG (04/10) 17:10:58
[org.apache.commons.httpclient.MultiThreadedHttpConnectionManager]:
Getting free connection, hostConfig=Hos
tConfiguration[host=http://cn=Blackboard,ou=webapps,o=stonewaremssb01.st
one-ware.com]
DEBUG (04/10) 17:10:58 [org.apache.commons.httpclient.HttpConnection]:
An error occurred while reading from the socket, is appears
 to be stale
java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:168)
        at
java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
        at
java.io.BufferedInputStream.read(BufferedInputStream.java:237)
        at
org.apache.commons.httpclient.HttpConnection.isStale(HttpConnection.java
:505)
        at
org.apache.commons.httpclient.HttpConnection.closeIfStale(HttpConnection
.java:430)
        at
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpCon
nectionAdapter.closeIfStale(MultiThreadedHttpCo
nnectionManager.java:1273)
        at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMe
thodDirector.java:381)
        at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMetho
dDirector.java:170)
        at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:3
96)
        at
com.stoneware.relay.WebAppProxyHandler.handle(WebAppProxyHandler.java:15
30)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
        at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationCon
text.java:633)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
        at org.mortbay.http.HttpServer.service(HttpServer.java:909)
        at
org.mortbay.http.HttpConnection.service(HttpConnection.java:820)
        at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986)
        at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
        at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245
)
        at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
        at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
DEBUG (04/10) 17:10:58 [org.apache.commons.httpclient.HttpConnection]:
Connection is stale, closing...
DEBUG (04/10) 17:10:58 [org.apache.commons.httpclient.HttpConnection]:
Open connection to cn=Blackboard,ou=webapps,o=stonewaremssb
01.stone-ware.com:80
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: >> "POST
/ntlmtest/displayform2.asp HTTP/1.1[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: >> "Accept: image/gif,
image/x-xbitmap, image/jpeg, image/pjpeg, application/x-sh
ockwave-flash, */*[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: >> "Referer:
https://bb.stone-ware.com/ntlmtest/form.html[\r][\n]";
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: >> "Accept-Language:
en-us[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: >> "Content-Type:
application/x-www-form-urlencoded[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: >> "UA-CPU:
x86[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: >> "Accept-Encoding:
gzip, deflate[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: >> "User-Agent:
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4
322)[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: >> "Content-Length:
21[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: >> "Cache-Control:
no-cache[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: >> "Cookie:
__utma=192635624.1155137762.1196176465.1205518449.1205528317.17; __ut
mz=192635624.1196176465.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none
); mbox=PC#1203020122430-488091.00#1267215576|session#1204
140538593-649658#1204145436|edge#app2-prod3.prod3.offermatica.com.120414
3582590#1204145437|check#true#1204143636; Janus4Legacy=Jan
us4Legacy;
CStoneSessionID=jroarg2Ybnqre214f10e!11939805cf9!68f3[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: >> "Host:
mssb01.stone-ware.com[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: >> "Expect:
100-continue[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: >> "[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: << "HTTP/1.1 401
Unauthorized[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: << "Content-Length:
1656[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: << "Content-Type:
text/html[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: << "Server:
Microsoft-IIS/6.0[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: << "WWW-Authenticate:
NTLM[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: << "WWW-Authenticate:
Negotiate[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: << "WWW-Authenticate:
Digest qop="auth",algorithm=MD5-sess,nonce="6f960e5b4f9bc80
15c1268d539bda4aa4b9be1f81e9728abc0bc4c85c202d71d0c747e0dd190be1f",chars
et=utf-8,realm="stone-ware.com"[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: <<
"MicrosoftOfficeWebServer: 5.0_Pub[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: << "X-Powered-By:
ASP.NET[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: << "Date: Thu, 10 Apr
2008 21:10:51 GMT[\r][\n]"
DEBUG (04/10) 17:10:58
[org.apache.commons.httpclient.HttpMethodDirector]: Authorization
required
DEBUG (04/10) 17:10:58
[org.apache.commons.httpclient.auth.AuthChallengeProcessor]: Supported
authentication schemes in the order
of preference: [ntlm, digest, basic]
INFO  (04/10) 17:10:58
[org.apache.commons.httpclient.auth.AuthChallengeProcessor]: ntlm
authentication scheme selected
DEBUG (04/10) 17:10:58
[org.apache.commons.httpclient.auth.AuthChallengeProcessor]: Using
authentication scheme: ntlm
DEBUG (04/10) 17:10:58
[org.apache.commons.httpclient.auth.AuthChallengeProcessor]:
Authorization challenge processed
DEBUG (04/10) 17:10:58
[org.apache.commons.httpclient.HttpMethodDirector]: Authentication
scope: NTLM <any realm>@mssb01.stone-war
e.com:80
DEBUG (04/10) 17:10:58
[org.apache.commons.httpclient.HttpMethodDirector]: Retry authentication
DEBUG (04/10) 17:10:58 [httpclient.wire.content]: << "<!DOCTYPE HTML
PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html
4/strict.dtd">[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.content]: <<
"<HTML><HEAD><TITLE>You are not authorized to view this
page</TITLE>[\r][\n]"

DEBUG (04/10) 17:10:58 [httpclient.wire.content]: << "<META
HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">[\
r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.content]: << "<STYLE
type="text/css">[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.content]: << "  BODY { font:
8pt/12pt verdana }[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.content]: << "  H1 { font:
13pt/15pt verdana }[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.content]: << "  H2 { font:
8pt/12pt verdana }[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.content]: << "  A:link { color:
red }[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.content]: << "  A:visited {
color: maroon }[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.content]: << "</STYLE>[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.content]: <<
"</HEAD><BODY><TABLE width=500 border=0 cellspacing=10><TR><TD>[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.content]: << "[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.content]: << "<h1>You are not
authorized to view this page</h1>[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.content]: << "You do not have
permission to view this directory or page using the credenti
als that you supplied because your Web browser is sending a
WWW-Authenticate header field that the Web server is not configured to
 accept.[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.content]: << "<hr>[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.content]: << "<p>Please try the
following:</p>[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.content]: << "<ul>[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.content]: << "<li>Contact the
Web site administrator if you believe you should be able to
view this directory or page.</li>[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.content]: << "<li>Click the <a
href="javascript:location.reload()">Refresh</a> button to t
ry again with different cred"
DEBUG (04/10) 17:10:58 [httpclient.wire.content]: <<
"entials.</li>[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.content]: << "</ul>[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.content]: << "<h2>HTTP Error
401.2 - Unauthorized: Access is denied due to server configur
ation.<br>Internet Information Services (IIS)</h2>[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.content]: << "<hr>[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.content]: << "<p>Technical
Information (for support personnel)</p>[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.content]: << "<ul>[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.content]: << "<li>Go to <a
href="http://go.microsoft.com/fwlink/?linkid=8180";>Microsoft Pr
oduct Support Services</a> and perform a title search for the words
<b>HTTP</b> and <b>401</b>.</li>[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.content]: << "<li>Open <b>IIS
Help</b>, which is accessible in IIS Manager (inetmgr),[\r][
\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.content]: << " and search for
topics titled <b>About Security</b>, <b>Authentication</b>,
and <b>About Custom Error Messages</b>.</li>[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.content]: << "</ul>[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.content]: << "[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.content]: <<
"</TD></TR></TABLE></BODY></HTML>[\r][\n]"
DEBUG (04/10) 17:10:58 [org.apache.commons.httpclient.HttpMethodBase]:
Resorting to protocol version default close connection poli
cy
DEBUG (04/10) 17:10:58 [org.apache.commons.httpclient.HttpMethodBase]:
Should NOT close connection, using HTTP/1.1
DEBUG (04/10) 17:10:58
[org.apache.commons.httpclient.HttpMethodDirector]: Authenticating with
NTLM <any realm>@mssb01.stone-ware.
com:80
DEBUG (04/10) 17:10:58
[org.apache.commons.httpclient.params.HttpMethodParams]: Credential
charset not configured, using HTTP elem
ent charset
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: >> "POST
/ntlmtest/displayform2.asp HTTP/1.1[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: >> "Accept: image/gif,
image/x-xbitmap, image/jpeg, image/pjpeg, application/x-sh
ockwave-flash, */*[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: >> "Referer:
https://bb.stone-ware.com/ntlmtest/form.html[\r][\n]";
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: >> "Accept-Language:
en-us[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: >> "Content-Type:
application/x-www-form-urlencoded[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: >> "UA-CPU:
x86[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: >> "Accept-Encoding:
gzip, deflate[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: >> "User-Agent:
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4
322)[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: >> "Content-Length:
21[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: >> "Cache-Control:
no-cache[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: >> "Cookie:
__utma=192635624.1155137762.1196176465.1205518449.1205528317.17; __ut
mz=192635624.1196176465.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none
); mbox=PC#1203020122430-488091.00#1267215576|session#1204
140538593-649658#1204145436|edge#app2-prod3.prod3.offermatica.com.120414
3582590#1204145437|check#true#1204143636; Janus4Legacy=Jan
us4Legacy;
CStoneSessionID=jroarg2Ybnqre214f10e!11939805cf9!68f3[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: >> "Expect:
100-continue[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: >> "Authorization: NTLM
TlRMTVNTUAABAAAABlIAAAcABwA0AAAAFAAUACAAAABTV1RFVC5TVE9OR
S1XQVJFLkNPTU5PVC1TRVQ=[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: >> "Host:
mssb01.stone-ware.com[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: >> "[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: << "HTTP/1.1 400 Bad
Request[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: << "Content-Type:
text/html[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: << "Date: Thu, 10 Apr
2008 21:10:51 GMT[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: << "Connection:
close[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.header]: << "Content-Length:
34[\r][\n]"
DEBUG (04/10) 17:10:58 [httpclient.wire.content]: << "<h1>Bad Request
(Invalid URL)</h1>"
DEBUG (04/10) 17:10:58 [org.apache.commons.httpclient.HttpMethodBase]:
Should close connection in response to directive: close
DEBUG (04/10) 17:10:58 [org.apache.commons.httpclient.HttpConnection]:
Releasing connection back to connection manager.
DEBUG (04/10) 17:10:58
[org.apache.commons.httpclient.MultiThreadedHttpConnectionManager]:
Freeing connection, hostConfig=HostConf
iguration[host=http://cn=Blackboard,ou=webapps,o=stonewaremssb01.stone-w
are.com]
DEBUG (04/10) 17:10:58
[org.apache.commons.httpclient.util.IdleConnectionHandler]: Adding
connection at: 1207861858781
DEBUG (04/10) 17:10:58
[org.apache.commons.httpclient.MultiThreadedHttpConnectionManager]:
Notifying no-one, there are no waiting
threads 

-----Original Message-----
From: Oleg Kalnichevski [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 10, 2008 2:52 PM
To: HttpClient User Discussion
Subject: RE: Using NTLM auth with expect continue


On Thu, 2008-04-10 at 09:59 -0400, Tony Thompson wrote:
> I have debug enabled for org.apache.commons.httpclient so, I am not 
> sure why nothing comes out.  Is there a specific class I should turn 
> on debug for that would give you the info you need?
> 

Tony

I will not be able to be of any meaningful help unless you manage to
produce a _complete_ session log that also includes context information
(especially that about connections being open and closed, and
credentials management)

http://hc.apache.org/httpclient-3.x/logging.html

Oleg 

> Maybe my last message wasn't clear enough on the POST without NTLM 
> credentials.  I tell HTTPClient to execute a method without providing 
> the credentials, I detect the 401 and then I start over and POST again

> with the credentials.  I will probably change it at some point so that

> I preemptively provide the credentials but at this point it is
irrelevant.
> The POST fails if the credentials are there or not.  Here is the same 
> limited trace of the request with the NTLM header.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 
This message (and any associated files) is intended only for the 
use of the individual or entity to which it is addressed and may 
contain information that is confidential, subject to copyright or
constitutes a trade secret. If you are not the intended recipient 
you are hereby notified that any dissemination, copying or 
distribution of this message, or files associated with this message, 
is strictly prohibited. If you have received this message in error, 
please notify us immediately by replying to the message and deleting 
it from your computer. Messages sent to and from Stoneware, Inc.
may be monitored.

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

Reply via email to