hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin Pasero <bpas...@rssowl.org>
Subject Re: Getting no content using Proxy and HTTPS
Date Sat, 21 May 2005 16:15:54 GMT


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


Mime
View raw message