Re: RedirectStrategy and HttpHost

2016-04-09 Thread Sam Wilson
On 4/9/16 5:46 AM, Oleg Kalnichevski wrote: On Fri, 2016-04-08 at 12:12 -0400, Sam Wilson wrote: Hey httpclient-users, I've got another question for you! To make requests to a particular IP with a certain host I'm using: HttpClient.execute(HttpHost tgt, HttpRequest req) For example

Re: Proxy Authentication Strategy

2016-04-09 Thread Oleg Kalnichevski
On Thu, 2016-04-07 at 17:54 +, Mark A. Claassen wrote: > Apache HTTPClient 4.4.1 > > I was doing some more tests with proxy authentication and I ran into > something I didn't expect. AuthenticationStrategyImpl goes though the list > of schemes ( SPNEGO, NTLM, ...) to find the ones that

Re: Trust all certificates

2016-04-09 Thread R Smith
FWIW, In httpclient 4.3.x, I extend the TrustStrategy class to create a "TrustAllTrustStrategy" class and I use this for handling SSL certs. import java.security.cert.CertificateException; import java.security.cert.X509Certificate; import org.apache.http.conn.ssl.TrustStrategy; /** * When you