Return-Path: Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: (qmail 62666 invoked from network); 6 Sep 2009 17:33:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Sep 2009 17:33:38 -0000 Received: (qmail 42432 invoked by uid 500); 6 Sep 2009 17:33:37 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 42355 invoked by uid 500); 6 Sep 2009 17:33:37 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 42345 invoked by uid 99); 6 Sep 2009 17:33:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Sep 2009 17:33:37 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rstudner@gmail.com designates 209.85.221.187 as permitted sender) Received: from [209.85.221.187] (HELO mail-qy0-f187.google.com) (209.85.221.187) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Sep 2009 17:33:28 +0000 Received: by qyk17 with SMTP id 17so364761qyk.2 for ; Sun, 06 Sep 2009 10:33:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=xqusI7pIhkx4RAIXM3lGgyNrM0fqQfuvnWjuDkQ4vjw=; b=KELIfgxDMFAFPMe9x1kiM9eC2nhyFV9MHRBxzf9YbjOh8bq6f9HLEpuLBtZwRgQ/HV zx5nvll8HfOr+5fJXD6hS7p/4eS6AqVho+ffXV3BoKnY66XDmXkJPaaJHKRD/VwbaEmY g94HohkpgbNVXtuGDzgSzGLWVgn3t85FWMpg8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=XB+dLVMuwPbs0MxzQKJ9yLq0sIzzmEBuK+BRhSF4lf1NetTQgl5L03f/YJKFnJLi3j RxLBu0aGmDMkNcWMga7p/eVFOXHLlje+uznVDX9LhcxnprIcLXIDDKsymeTas0L+1Gq3 Aw2aOIn4E4ghH0p9OESsBJXUdjYUHMJ+Igd8Q= Received: by 10.224.30.196 with SMTP id v4mr8626424qac.343.1252258387246; Sun, 06 Sep 2009 10:33:07 -0700 (PDT) Received: from new-host-2.home (pool-71-126-180-105.washdc.fios.verizon.net [71.126.180.105]) by mx.google.com with ESMTPS id 23sm1337119qyk.7.2009.09.06.10.33.05 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 06 Sep 2009 10:33:06 -0700 (PDT) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Mime-Version: 1.0 (Apple Message framework v1075.2) Subject: Re: Httpclient 4.0 vs 3.1 From: Roger Studner In-Reply-To: <4AA3DF8A.6000502@apache.org> Date: Sun, 6 Sep 2009 13:33:04 -0400 Content-Transfer-Encoding: 7bit Message-Id: <40DE961B-D9E6-488B-80C7-6C3D3647986C@gmail.com> References: <4AA3DF8A.6000502@apache.org> To: "HttpClient User Discussion" X-Mailer: Apple Mail (2.1075.2) X-Virus-Checked: Checked by ClamAV on apache.org Oleg: When I did the new Scheme("https", new Easy etc etc); I got some error about the constructor being bad But, I imagine that has something to do with httpclient 3.1 and 4.0 both being on the classpath Roger On Sep 6, 2009, at 12:12 PM, Oleg Kalnichevski wrote: > Roger Studner wrote: >> I was wondering if anyone has ever discovered how to "redo" the 3.1 >> SSL example that went (very tersely) as follows: >> Protocol easyhttps = new Protocol("https", new >> EasySSLProtocolSocketFactory(), 443); >> Protocol.registerProtocol("https", easyhttps); >> I tried this: >> // SchemeRegistry schemeRegistry = new SchemeRegistry(); >> // // http scheme >> // schemeRegistry.register( new Scheme( "http", >> PlainSocketFactory.getSocketFactory(), 80 ) ); >> // // https scheme >> // schemeRegistry.register( new Scheme( "https", new >> EasySSLProtocolSocketFactory(), 443 ) ); > > Try this: > > httpclient.getConnectionManager().getSchemeRegistry().register( > new Scheme("https", > new EasySSLProtocolSocketFactory(), 443 )); > > >> But that example failed to take note that you can't even use that >> constructor with Scheme :) > > Constructor of what? > > Oleg > >> I'm currently using 2 libraries.. one of which depends on >> httpclient 3.1 and the other on httpclient 4.0 hah. >> So if I can find a way to remove the use of 3.1 it'd be great! my >> current major sticking point is just telling httpclient 4.0 "go >> ahead and accept any SSL from anything, I dont care :)" >> Thanks, >> Roger >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org >> For additional commands, e-mail: httpclient-users-help@hc.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org > For additional commands, e-mail: httpclient-users-help@hc.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org