Re: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated

2013-04-15 Thread Oleg Kalnichevski
On Sun, 2013-04-14 at 17:07 +0200, Philippe Mouawad wrote: A note about this: -Dhttps.protocols=SSLv3 fixes issue for Java Implementation. So it seems the server only supports SSLv3, attempt to negotiate upwards from v2 to v3 seems not to be supported by server. To fix it for HC family

Re: Repeated cookies with same name and value

2013-04-15 Thread Oleg Kalnichevski
On Sun, 2013-04-14 at 18:48 +0200, Joan Balagueró wrote: Hello, I’m querying an url (with head method) and printing all the response headers received: HttpResponse response = objHttp.execute(objHead); HeaderIterator it = response.headerIterator(); while

RE: Smartcard (Cac) remote authentication

2013-04-15 Thread Mark Claassen
Hopefully someone will respond to this beside me...I am curious to read the replies. What OS are you using? I did something similar to this, although my case was different enough that this is probably not going to be too helpful. What I had to do is use HttpClient to connect to a webserver

Re: inputStream.read() blocks at end of chunk

2013-04-15 Thread jpuckety
I'm still having trouble reading full chunks when chunked encoded. while (!done) { StringBuilder sb = new StringBuilder(); int bytesRead = 0; while ((bytesRead = inputStream.read(buffer)) != -1) { String

how to customize my HttpURLConnection to modify http response header?

2013-04-15 Thread Li Li
hi all, I am not sure it's suitable to post here. but I asked it in oracle's network forum and don't get a solution. I think you guys here are experts of java network programming, so I come here for help. orginal post in forum :