hostname in certificate didn't match

2010-09-14 Thread Richard Gundersen
Hi When I make a connection with HttpClient 4.0.1, I get this message: hostname in certificate didn't match: 1.2.3.4 != *.testing.com However when I go to my site in any browser, the certificate is for *.testing.com so I was wondering where the hostname is being converted to an IP address. In

socket write error and non repeatable request entity problem

2010-09-14 Thread George Georgieff
I have this code: - DefaultHttpClient httpclient = new DefaultHttpClient(); // I want stream body, not file body InputStream fullStream = new BufferedInputStream(new FileInputStream(...), 8192); HttpPost method = new HttpPost(...); MultipartEntity entity = new

RE: hostname in certificate didn't match

2010-09-14 Thread Richard Gundersen
Hmm, I tried this too in case it was a problem with the default hostname verifier, but I still have the same problem: String url = protocol + :// + hostname + : + port + path; log.debug(Authenticating user + userName + against URL: + url); HttpParams params = new

Can't get SSL / https to work

2010-09-14 Thread Oliver Siegmar
Hello, I'd like to access content that is provided by https but my code always fails with an SSLException. I tried it with a very simple example: import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.client.DefaultHttpClient;

Re: Can't get SSL / https to work

2010-09-14 Thread sebb
On 14 September 2010 18:09, Oliver Siegmar oli...@siegmar.org wrote: Hello, I'd like to access content that is provided by https but my code always fails with an SSLException. I tried it with a very simple example: import org.apache.http.client.HttpClient; import

Re: socket write error and non repeatable request entity problem

2010-09-14 Thread Oleg Kalnichevski
On Tue, 2010-09-14 at 19:08 +0300, George Georgieff wrote: I have this code: - DefaultHttpClient httpclient = new DefaultHttpClient(); // I want stream body, not file body InputStream fullStream = new BufferedInputStream(new FileInputStream(...), 8192); HttpPost

Re: Can't get SSL / https to work

2010-09-14 Thread Oleg Kalnichevski
On Tue, 2010-09-14 at 19:56 +0100, sebb wrote: On 14 September 2010 18:09, Oliver Siegmar oli...@siegmar.org wrote: Hello, I'd like to access content that is provided by https but my code always fails with an SSLException. I tried it with a very simple example: import

Re: Can't get SSL / https to work

2010-09-14 Thread Oliver Siegmar
Am Tuesday 14 September 2010 schrieb Oleg Kalnichevski: On Tue, 2010-09-14 at 19:56 +0100, sebb wrote: On 14 September 2010 18:09, Oliver Siegmar oli...@siegmar.org wrote: Hello, I'd like to access content that is provided by https but my code always fails with an SSLException. I

RE: Can't get SSL / https to work

2010-09-14 Thread Richard Gundersen
I think this is my problem too (see my email earlier in the day). I'm on Java 1.6_21, 64bit Windows 7, running in Jboss 4.2 if it's any help. I won't get chance to look at this until Monday now but if there is an emergency release I'll try it out on Monday. Cheers

RE: Can't get SSL / https to work

2010-09-14 Thread Oleg Kalnichevski
On Tue, 2010-09-14 at 20:49 +0100, Richard Gundersen wrote: I think this is my problem too (see my email earlier in the day). I'm on Java 1.6_21, 64bit Windows 7, running in Jboss 4.2 if it's any help. I won't get chance to look at this until Monday now but if there is an emergency release