Repeated cookies with same name and value

2013-04-14 Thread Joan Balagueró
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 (it.hasNext())

{

Header h = it.nextHeader();

System.out.println(h.getName() + " = " + h.getValue());

}

 

These are the headers:

 

Date = Sun, 14 Apr 2013 16:43:04 GMT

Server = Microsoft-IIS/6.0

Etag = 

X-XSS-Protection = 0

SRV = 18

X-Powered-By = ASP.NET

X-AspNet-Version = 4.0.30319

Set-Cookie = purgado=1; expires=Tue, 14-May-2013 16:43:04 GMT; path=/

Set-Cookie = devType=0; expires=Tue, 14-May-2013 16:43:04 GMT; path=/

Set-Cookie = preferencia=-1; expires=Sun, 14-Apr-2013 17:43:04 GMT; path=/

Set-Cookie = ck_idioma=es; expires=Mon, 14-Apr-2014 16:43:04 GMT; path=/;
HttpOnly

Set-Cookie = ck_sesion=2128718291; expires=Mon, 14-Apr-2014 16:43:04 GMT;
path=/; HttpOnly

Set-Cookie = USW_codigo=1615631414; expires=Mon, 14-Apr-2014 16:43:04 GMT;
path=/; HttpOnly

Set-Cookie = preferencia=-1; expires=Sun, 14-Apr-2013 17:43:04 GMT; path=/

Set-Cookie = preferencia=-1; expires=Sun, 14-Apr-2013 17:43:04 GMT; path=/

Set-Cookie = preferencia=-1; expires=Sun, 14-Apr-2013 17:43:04 GMT; path=/

Set-Cookie = preferencia=-1; expires=Sun, 14-Apr-2013 17:43:04 GMT; path=/

Set-Cookie = preferencia=-1; expires=Sun, 14-Apr-2013 17:43:04 GMT; path=/

Set-Cookie = preferencia=-1; expires=Sun, 14-Apr-2013 17:43:04 GMT; path=/

Set-Cookie = preferencia=-1; expires=Sun, 14-Apr-2013 17:43:04 GMT; path=/

Set-Cookie = preferencia=-1; expires=Sun, 14-Apr-2013 17:43:04 GMT; path=/

Set-Cookie = preferencia=-1; expires=Sun, 14-Apr-2013 17:43:04 GMT; path=/

Set-Cookie = preferencia=-1; expires=Sun, 14-Apr-2013 17:43:04 GMT; path=/

Set-Cookie = preferencia=-1; expires=Sun, 14-Apr-2013 17:43:04 GMT; path=/

Cache-Control = private

Content-Type = text/html; charset=iso-8859-1

Content-Length = 172813

 

 

Obviously this is not a problem with HttpClient, but is it posible to
receive the same cookie 12 times? Does this complain the http specification?
Should HttpResponse remove the repeated headers with exactly the same name
and value?

 

Thanks,

Joan.



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

2013-04-14 Thread Philippe Mouawad
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 it seems we need to call:

   -  socket.setEnabledProtocols(new String[] { "SSLv3" });

Is there a better way to fix this ?


Thanks

Regards
Philippe

On Sun, Apr 14, 2013 at 3:50 PM, Philippe Mouawad <
philippe.moua...@gmail.com> wrote:

> Hello ,
>
> We had a report recently on JMeter project:
>
>- https://issues.apache.org/bugzilla/show_bug.cgi?id=54759
>
>
> Investigations didn't help us solve issue that seems to occur on this
> particular website:
>
>  https://clui.xstratacoal.com.au
>
> And even with JAVA Pure API.
>
> See the 2 snippet attached to the bug inspired from:
>
>-
>
> http://javaskeleton.blogspot.fr/2010/07/avoiding-peer-not-authenticated-with.html
>-
>
> http://javaskeleton.blogspot.fr/2011/01/avoiding-sunsecurityvalidatorvalidatore.html
>
>
> Any ideas about this ?
>
> Thanks
>
> Regards
>
> Philippe
>
>


-- 
Cordialement.
Philippe Mouawad.


javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated

2013-04-14 Thread Philippe Mouawad
Hello ,

We had a report recently on JMeter project:

   - https://issues.apache.org/bugzilla/show_bug.cgi?id=54759


Investigations didn't help us solve issue that seems to occur on this
particular website:

 https://clui.xstratacoal.com.au

And even with JAVA Pure API.

See the 2 snippet attached to the bug inspired from:

   -
   
http://javaskeleton.blogspot.fr/2010/07/avoiding-peer-not-authenticated-with.html
   -
   
http://javaskeleton.blogspot.fr/2011/01/avoiding-sunsecurityvalidatorvalidatore.html


Any ideas about this ?

Thanks

Regards

Philippe