Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 40532 invoked from network); 22 Sep 2005 11:20:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Sep 2005 11:20:14 -0000 Received: (qmail 12469 invoked by uid 500); 22 Sep 2005 11:18:11 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 8526 invoked by uid 500); 22 Sep 2005 11:17:44 -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 Received: (qmail 6441 invoked by uid 99); 22 Sep 2005 11:17:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Sep 2005 04:17:26 -0700 X-ASF-Spam-Status: No, hits=0.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_HELO_FAIL,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ROLWEBER@de.ibm.com designates 195.212.29.151 as permitted sender) Received: from [195.212.29.151] (HELO mtagate2.de.ibm.com) (195.212.29.151) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Sep 2005 03:52:41 -0700 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate2.de.ibm.com (8.12.10/8.12.10) with ESMTP id j8MAqAd7205970 for ; Thu, 22 Sep 2005 10:52:10 GMT Received: from d12av04.megacenter.de.ibm.com (d12av04.megacenter.de.ibm.com [9.149.165.229]) by d12nrmr1607.megacenter.de.ibm.com (8.12.10/NCO/VERS6.7) with ESMTP id j8MAqA8q163642 for ; Thu, 22 Sep 2005 12:52:10 +0200 Received: from d12av04.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av04.megacenter.de.ibm.com (8.12.11/8.13.3) with ESMTP id j8MAqAxx005248 for ; Thu, 22 Sep 2005 12:52:10 +0200 Received: from d12ml067.megacenter.de.ibm.com (d12ml067.megacenter.de.ibm.com [9.149.164.162]) by d12av04.megacenter.de.ibm.com (8.12.11/8.12.11) with ESMTP id j8MAqAsf005245 for ; Thu, 22 Sep 2005 12:52:10 +0200 In-Reply-To: To: "HttpClient User Discussion" MIME-Version: 1.0 Subject: Re: ntlm problem X-Mailer: Lotus Notes Release 6.5.4 March 27, 2005 From: Roland Weber X-MIMETrack: S/MIME Sign by Notes Client on Roland Weber/Germany/IBM(Release 6.5.4|March 27, 2005) at 22.09.2005 12:52:00, Serialize by Notes Client on Roland Weber/Germany/IBM(Release 6.5.4|March 27, 2005) at 22.09.2005 12:52:00, Serialize complete at 22.09.2005 12:52:00, S/MIME Sign failed at 22.09.2005 12:52:00: The cryptographic key was not found, Serialize by Router on D12ML067/12/M/IBM(Release 6.53HF247 | January 6, 2005) at 22/09/2005 12:52:09, Serialize complete at 22/09/2005 12:52:09 Message-ID: Date: Thu, 22 Sep 2005 12:52:07 +0200 Content-Type: text/plain; charset="US-ASCII" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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 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:443HTTP/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 - << "Apache Tomcat/4.1.24 - Error report

HTTP Status 501 - Method CONNECT is not defined in RFC 2068 and is not supported by the Servlet API


type Status report

message Method CONNECT is not defined in RFC 2068 and is not supported by the Servlet API

description 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 ).


Apache Tomcat/4.1.24

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