Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 4820 invoked from network); 22 Sep 2005 09:37:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Sep 2005 09:37:45 -0000 Received: (qmail 10490 invoked by uid 500); 22 Sep 2005 09:37:37 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 10378 invoked by uid 500); 22 Sep 2005 09:37:36 -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 10345 invoked by uid 99); 22 Sep 2005 09:37:36 -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 02:37:36 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=HTML_20_30,HTML_MESSAGE,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of krisharry@gmail.com designates 64.233.162.195 as permitted sender) Received: from [64.233.162.195] (HELO zproxy.gmail.com) (64.233.162.195) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Sep 2005 02:37:44 -0700 Received: by zproxy.gmail.com with SMTP id x3so146423nzd for ; Thu, 22 Sep 2005 02:37:14 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=gVCw1MAr168ujI+AcZW79BMJXtf5mmOpB5L9F8waVvRkP+O0LjMQfv33+vdUPxcsuNFeHkXQGMKC0OWKM7eBV3jQyg/w1gh2tAuGogDZF6cryYcsq3pfhdEYl+CU8OHz2DmdGICnv0c+HEqWSa0RUbX8gqXbU0GkiJwkh+KmnRM= Received: by 10.54.49.10 with SMTP id w10mr1610609wrw; Thu, 22 Sep 2005 02:37:14 -0700 (PDT) Received: by 10.54.89.15 with HTTP; Thu, 22 Sep 2005 02:37:14 -0700 (PDT) Message-ID: Date: Thu, 22 Sep 2005 17:37:14 +0800 From: Kris Harry Reply-To: Kris Harry To: httpclient-user@jakarta.apache.org Subject: ntlm problem MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5435_1036809.1127381834797" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_5435_1036809.1127381834797 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 =3D 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 ",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=3DISO-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 an= d 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

" ------=_Part_5435_1036809.1127381834797--