Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 94395 invoked from network); 10 May 2005 15:11:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 May 2005 15:11:28 -0000 Received: (qmail 60609 invoked by uid 500); 10 May 2005 15:14:38 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 60538 invoked by uid 500); 10 May 2005 15:14:37 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 60497 invoked by uid 99); 10 May 2005 15:14:37 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of bindulbhowmik@gmail.com designates 64.233.162.194 as permitted sender) Received: from zproxy.gmail.com (HELO zproxy.gmail.com) (64.233.162.194) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 10 May 2005 08:14:36 -0700 Received: by zproxy.gmail.com with SMTP id 13so2288974nzn for ; Tue, 10 May 2005 08:11:05 -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:content-transfer-encoding:content-disposition; b=eUc6/QH0DaffZfJrm0OJZ7IhR4Q6MI9BErrbHm8NPspbktjUJKy8TifjlJWVX9UOo2gn+BAZkWMvpkczeVvoJC9r9wBu+K4UBGUhMCMTP68SN5EbcHLDngJNVEauIurcl7P9lUXV4Q3aUyab17n9MLgIFYvBLQAFftHgQSbXGp0= Received: by 10.36.23.5 with SMTP id 5mr1548740nzw; Tue, 10 May 2005 08:11:05 -0700 (PDT) Received: by 10.36.23.10 with HTTP; Tue, 10 May 2005 08:11:05 -0700 (PDT) Message-ID: <882a6a7e05051008119356cad@mail.gmail.com> Date: Tue, 10 May 2005 20:41:05 +0530 From: "Bindul Bhowmik (GMail)" Reply-To: "Bindul Bhowmik (GMail)" To: Jakarta Commons Users List , Jakarta Commons HTTP Client User List Subject: [httpclient] Tunnelling non-HTTP protocols through ProxyClient Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, I am trying to tunnel a FTP stream over an HTTP Tunnel proxy. I am trying to use the ProxyClient class of commons-client for that. I am using commons-net as my FTP Client, and have written an implementation of SocketFactory to be used for FTP connections over the Proxy. Inside my SocketFactory implementation, I am getting the socket from ProxyClient.ConnectResponse#getSocket() class. The code I use is: ProxyClient proxyClient =3D new ProxyClient(); =09=09HostConfiguration hostConfiguration =3D proxyClient.getHostConfigurat= ion(); =09=09hostConfiguration.setHost(host, port, httpClientProtocol); =09=09hostConfiguration.setProxy("proxy", 8085); =09=09NTCredentials credentials =3D getNTCredentials("domain\\user", =09=09=09=09"password","proxy"); =09=09// Set the proxy credentials =09=09proxyClient.getState().setProxyCredentials(new AuthScope("proxy", -1), credentials); =09=09 =09=09ProxyClient.ConnectResponse response =3D proxyClient.connect(); =09=09if (response.getSocket() =3D=3D null) { =09=09=09throw new IOException("Connection through proxy could not be opene= d"); =09=09} =09=09 =09=09return response.getSocket(); However, the getSocket() method returns null, and on setting the log level to FINE, the last response from the Proxy says:
HTTP/1.1 502 Proxy Error ( The specified Secure Sockets Layer (SSL)
port is not allowed. ISA Server is not configured to allow SSL
requests from this port. Most Web browsers use port 443 for SSL
requests.  )
This problem is related to the ones discussed in the commons-user threads: http://mail-archives.apache.org/mod_mbox/jakarta-commons-user/2005= 04.mbox/%3c882a6a7e05041101351531c7d1@mail.gmail.com%3e and http://mail-archives.apache.org/mod_mbox/jakarta-commons-user/200504.mb= ox/%3cOFD1167CC8.7FF51EF6-ONCA256FE8.000AFB2E@qantas.com.au%3e Any help in solving this would be great. Regards, Bindul --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org