Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 32270 invoked from network); 21 May 2005 15:16:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 May 2005 15:16:24 -0000 Received: (qmail 46060 invoked by uid 500); 21 May 2005 15:16:23 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 46019 invoked by uid 500); 21 May 2005 15:16:23 -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 46004 invoked by uid 99); 21 May 2005 15:16:23 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from dd1618.kasserver.com (HELO dd1618.kasserver.com) (81.209.148.227) by apache.org (qpsmtpd/0.28) with ESMTP; Sat, 21 May 2005 08:16:21 -0700 Received: from [192.168.127.2] (pD9E7438D.dip0.t-ipconnect.de [217.231.67.141]) by dd1618.kasserver.com (Postfix) with ESMTP id 8FB8581A5E for ; Sat, 21 May 2005 17:16:15 +0200 (CEST) Message-ID: <428F5EBA.40405@rssowl.org> Date: Sat, 21 May 2005 17:15:54 +0100 From: Benjamin Pasero User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: HttpClient User Discussion Subject: Re: Getting no content using Proxy and HTTPS References: <428BA51B.5090701@rssowl.org> <1116451656.4889.3.camel@localhost.localdomain> <428E214B.2060600@rssowl.org> <1116672863.6732.9.camel@localhost.localdomain> <428F3D4D.2080108@rssowl.org> <1116682428.6732.22.camel@localhost.localdomain> In-Reply-To: <1116682428.6732.22.camel@localhost.localdomain> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Oleg Kalnichevski wrote: >Benjamin, > > Oleg, >EasySSLProtocolSocketFactory class should implement >SecureProtocolSocketFactory interface. I am sure this is the cause of >the problem > > So, I assume EasySSLProtocolSocketFactory should implement both SecureProtocolSocketFactory and ProtocolSocketFactory? Could you give me a hint on how to implement the createSocket-Method that is coming from the SecureProtocolSocketFactory? Thanks! Ben >Oleg > > > >On Sat, 2005-05-21 at 14:53 +0100, Benjamin Pasero wrote: > > >>Oleg Kalnichevski wrote: >> >> >> >>>Benjamin, >>> >>>OK. I have spotted the problem: >>> >>>[DEBUG] header - >> "GET >>>https://sourceforge.net/export/rss2_project.php?group_id=86683 HTTP/1.1 >>>[\r][\n]" >>> >>>This of course is not right. HttpClient is programmed to use so called >>>secure tunneling when executing HTTPS via a proxy. >>> >>>Does your application register a custom HTTPS Protocol object with a >>>custom ProtocolSocketFactory? >>> >>> >>> >>> >>Ah ok. Well, I am doing as follows: >> >>Protocol easyHttpsProtocol = new Protocol("https", new >>EasySSLProtocolSocketFactory(), 443); >>Protocol.registerProtocol("https", easyHttpsProtocol); >> >>I think this was taken directly from the Examples. I am calling that >>ONCE on startup of the >>application. >> >>The EasySSLProtocolSocketFactory implements ProtocolSocketFactory >> >>The EasyX509TrustManager implements X509TrustManager >> >>I am not using the legacy com.sun.* classes for these, but the ones from >>javax.net.ssl.* >> >>Do I have to do something special to enable secure Tunneling? >> >>Find the two classes I am using attached. >> >>Thanks for helping, >>Ben >> >> > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: httpclient-user-help@jakarta.apache.org > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpclient-user-help@jakarta.apache.org