hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <ROLWE...@de.ibm.com>
Subject Re: ntlm problem
Date Thu, 22 Sep 2005 10:52:07 GMT
Hi Kris,

please verify your proxy settings. It looks like the proxy
request is sent to a plain server instead of a proxy.

hope that helps,
  Roland




Kris Harry <krisharry@gmail.com> 
22.09.2005 11:37
Please respond to
"HttpClient User Discussion"


To
httpclient-user@jakarta.apache.org
cc

Subject
ntlm problem






Hi,
Am trying to post a file through ISA proxy which does ntlm authentication.
Getting responsecode 501, please let me know what went wrong.
Appreciate your help, attached my code and the wire log. thanks in 
advance.

code
----
Protocol authhttps = new Protocol("https", new
AuthSSLProtocolSocketFactory(), 443);
Protocol.registerProtocol("https", authhttps);
client.getHostConfiguration().setProxy(ProxyHost,ProxyPort);
client.getState().setCredentials(AuthScope.ANY,new
NTCredentials(ProxyUser,ProxyUserPwd,"uat.dcconnect.dc.com<
http://uat.dcconnect.dc.com>
",myDomain));
hostconfig.setHost(hostname, 443, authhttps);
client.getHttpConnectionManager().getParams().setConnectionTimeout(300000);


wire log
--------
httpclient.wire.header - >> "CONNECT
uat.dcconnect.dc.com:443<http://uat.dcconnect.dc.com:443>HTTP/1.1"
httpclient.wire.header - >> "User-Agent: Jakarta
Commons-HttpClient/3.0-rc3[\r][\n]"
httpclient.wire.header - >> "Host: uat.dcconnect.dc.com[\r][\n]"
httpclient.wire.header - >> "Proxy-Connection: Keep-Alive[\r][\n]"
httpclient.wire.header - >> "[\r][\n]"
httpclient.wire.header - << "HTTP/1.1 501 Method CONNECT is not defined in
RFC 2068 and is not supported by the Servlet API [\r][\n]"
httpclient.wire.header - << "Content-Type:
text/html;charset=ISO-8859-1[\r][\n]"
httpclient.wire.header - << "Connection: close[\r][\n]"
httpclient.wire.header - << "Content-Language: en-GB[\r][\n]"
httpclient.wire.header - << "Date: Thu, 22 Sep 2005 07:52:53 GMT[\r][\n]"
httpclient.wire.header - << "Server: Apache Tomcat/4.1.24 (HTTP/1.1
Connector)[\r][\n]"
httpclient.wire.content - << "<html><head><title>Apache Tomcat/4.1.24
-
Error report</title><STYLE><!--H1{font-family :
sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;}
H3{font-family : sans-serif,Arial,Tahoma;color : white;background-color :
#0086b2;} BODY{font-family : sans-serif,Arial,Tahoma;color :
black;background-color : white;} B{color : white;background-color :
#0086b2;} HR{color : #0086b2;} --></STYLE> </head><body><h1>HTTP
Status 
501
- Method CONNECT is not defined in RFC 2068 and is not supported by the
Servlet API </h1><HR size="1" noshade><p><b>type</b> Status
report</p><p><b>message</b> <u>Method CONNECT is not defined
in RFC 2068 
and
is not supported by the Servlet API </u></p><p><b>description</b>
<u>The
server does not support the functionality needed to fulfill this request
(Method CONNECT is not defined in RFC 2068 and is not supported by the
Servlet API ).</u></p><HR size="1" noshade><h3>Apache
Tomcat/4.1.24</h3></body></html>"



---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message