On Thu, 2011-10-13 at 16:14 -0700, Cardona, Julian wrote:
> 
>     Hi!
> 
>     I've used the code samples from "ElementalHttpGet" and
>     "ElementalHttpPost" for my basic HTTP'ing needs without
>     a glitch so far.  Now I need to open an HTTPS connection
>     and am not sure how to modify those samples to make it
>     work.
> 
>     I've checked the docs and the other examples, no luck
>     there.  The async HTTPS server, for instance, really
>     has a very different flow and is not immediately
>     applicable.  Same goes for HttpClient:  I have to deal
>     regularly with ill-formed responses, so need to have
>     access to a bit lower level data --exactly at the level
>     HttpCore provides it.
> 
>     Any resources (tutorials or code samples) on the specific
>     subject of synchronous, a.k.a. "classic", HTTPS + HttpCore
>     that I might be overlooking?  Thanks in advance!
> 
> 
>     Julian Cardona
> 
> 

Julian 

DefaultHttpClientConnection can be bound to any arbitrary Socket. You
just need SSLSocketFactory initialized with the required trust and key
material. Once SSLSocket is created it can be bound to a
DefaultHttpClientConnection. See BasicConnFactory for example  

http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/pool/BasicConnFactory.java

Cheers

Oleg



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to