[prev in list] [next in list] [prev in thread] [next in thread] 

List:       htmlunit-develop
Subject:    Re: [HtmlUnit] SF.net SVN: htmlunit:[5731]
From:       Ahmed Ashour <asashour () yahoo ! com>
Date:       2010-05-25 10:04:33
Message-ID: 543465.47939.qm () web120012 ! mail ! ne1 ! yahoo ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Marc,

Sadly, we seem to miss tests for InsecureSSL, Proxy, Basic/Digest/NTLM \
authentication.

I may check how Jetty can be configure for that, but after fixing the obvious points.

Ahmed



________________________________
From: Marc Guillemot <mguillemot@yahoo.fr>
To: htmlunit-develop@lists.sourceforge.net
Sent: Tue, May 25, 2010 12:08:44 PM
Subject: Re: [HtmlUnit] SF.net SVN: htmlunit:[5731] trunk/htmlunit/src/main/java/com/ \
gargoylesoftware/htmlunit/HttpWebConnectionInsecureSSL.java

Hi,

does it mean that hadn't (and still don't have) any test for that?

Cheers,
Marc.
-- 
Blog: http://mguillem.wordpress.com

asashour@users.sourceforge.net wrote:
> Revision: 5731
> http://htmlunit.svn.sourceforge.net/htmlunit/?rev=5731&view=rev
> Author:   asashour
> Date:     2010-05-22 03:42:06 +0000 (Sat, 22 May 2010)
> 
> Log Message:
> -----------
> InsecureSSL now works with HttpClient 4
> 
> Modified Paths:
> --------------
> trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/HttpWebConnectionInsecureSSL.java
>  
> Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/HttpWebConnectionInsecureSSL.java
>  ===================================================================
> --- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/HttpWebConnectionInsecureSSL.java \
>                 2010-05-21 08:02:23 UTC (rev 5730)
> +++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/HttpWebConnectionInsecureSSL.java \
> 2010-05-22 03:42:06 UTC (rev 5731) @@ -21,7 +21,7 @@
> 
> import org.apache.http.conn.scheme.Scheme;
> import org.apache.http.conn.scheme.SchemeRegistry;
> -import org.apache.http.conn.scheme.SocketFactory;
> +import org.apache.http.conn.ssl.AllowAllHostnameVerifier;
> import org.apache.http.conn.ssl.SSLSocketFactory;
> import org.apache.http.impl.client.AbstractHttpClient;
> 
> @@ -44,7 +44,8 @@
> if (useInsecureSSL) {
> final SSLContext sslContext = SSLContext.getInstance("SSL");
> sslContext.init(null, new TrustManager[] {new InsecureTrustManager()}, null);
> -            final SocketFactory factory = new SSLSocketFactory(sslContext);
> +            final SSLSocketFactory factory = new SSLSocketFactory(sslContext);
> +            factory.setHostnameVerifier(new AllowAllHostnameVerifier());
> final Scheme https = new Scheme("https", factory, 443);
> 
> final SchemeRegistry schemeRegistry = \
> httpClient.getConnectionManager().getSchemeRegistry(); 


------------------------------------------------------------------------------

_______________________________________________
HtmlUnit-develop mailing list
HtmlUnit-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop



      


[Attachment #5 (text/html)]

<html><head><style type="text/css"><!-- DIV {margin:0px;} \
--></style></head><body><div style="font-family:times new roman,new \
york,times,serif;font-size:12pt">Hi Marc,<br><br>Sadly, we seem to miss tests for \
InsecureSSL, Proxy, Basic/Digest/NTLM authentication.<br><br>I may check how Jetty \
can be configure for that, but after fixing the obvious points.<br><br>Ahmed<div \
style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div \
style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><font size="2" \
face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Marc \
Guillemot &lt;mguillemot@yahoo.fr&gt;<br><b><span style="font-weight: \
bold;">To:</span></b> htmlunit-develop@lists.sourceforge.net<br><b><span \
style="font-weight: bold;">Sent:</span></b> Tue, May 25, 2010 12:08:44 PM<br><b><span \
style="font-weight: bold;">Subject:</span></b> Re: [HtmlUnit] SF.net SVN: \
htmlunit:[5731]  trunk/htmlunit/src/main/java/com/ \
gargoylesoftware/htmlunit/HttpWebConnectionInsecureSSL.java<br></font><br> \
Hi,<br><br>does it mean that hadn't (and still don't have) any test for \
that?<br><br>Cheers,<br>Marc.<br>-- <br><span>Blog: <a target="_blank" \
href="http://mguillem.wordpress.com">http://mguillem.wordpress.com</a></span><br><br><a \
ymailto="mailto:asashour@users.sourceforge.net" \
href="mailto:asashour@users.sourceforge.net">asashour@users.sourceforge.net</a> \
wrote:<br>&gt; Revision: 5731<br><span>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <a \
target="_blank" href="http://htmlunit.svn.sourceforge.net/htmlunit/?rev=5731&amp;view= \
rev">http://htmlunit.svn.sourceforge.net/htmlunit/?rev=5731&amp;view=rev</a></span><br>&gt; \
Author:&nbsp;  asashour<br>&gt; Date:&nbsp; &nbsp;  2010-05-22 03:42:06 +0000 (Sat, \
22 May 2010)<br>&gt; <br>&gt; Log Message:<br>&gt; -----------<br>&gt; InsecureSSL \
now works with HttpClient 4<br>&gt; <br>&gt; Modified Paths:<br>&gt; \
--------------<br>&gt;&nbsp; &nbsp;   \
trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/HttpWebConnectionInsecureSSL.java<br>&gt; \
<br>&gt; Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/HttpWebConnectionInsecureSSL.java<br>&gt; \
===================================================================<br>&gt; --- \
trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/HttpWebConnectionInsecureSSL.java&nbsp;&nbsp;&nbsp; \
2010-05-21 08:02:23 UTC (rev 5730)<br>&gt; +++ \
trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/HttpWebConnectionInsecureSSL.java&nbsp;&nbsp;&nbsp; \
2010-05-22 03:42:06 UTC (rev 5731)<br>&gt; @@ -21,7 +21,7 @@<br>&gt;&nbsp; \
<br>&gt;&nbsp; import org.apache.http.conn.scheme.Scheme;<br>&gt;&nbsp; import \
org.apache.http.conn.scheme.SchemeRegistry;<br>&gt; -import \
org.apache.http.conn.scheme.SocketFactory;<br>&gt; +import \
org.apache.http.conn.ssl.AllowAllHostnameVerifier;<br>&gt;&nbsp; import  \
org.apache.http.conn.ssl.SSLSocketFactory;<br>&gt;&nbsp; import \
org.apache.http.impl.client.AbstractHttpClient;<br>&gt;&nbsp; <br>&gt; @@ -44,7 +44,8 \
@@<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (useInsecureSSL) {<br>&gt;&nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; final SSLContext sslContext = \
SSLContext.getInstance("SSL");<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; sslContext.init(null, new TrustManager[] {new InsecureTrustManager()}, \
null);<br>&gt; -&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; final SocketFactory factory \
= new SSLSocketFactory(sslContext);<br>&gt; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; final SSLSocketFactory factory = new SSLSocketFactory(sslContext);<br>&gt; \
+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; factory.setHostnameVerifier(new \
AllowAllHostnameVerifier());<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
final Scheme https = new Scheme("https", factory, 443);<br>&gt;&nbsp; <br>&gt;&nbsp; \
&nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp; final SchemeRegistry schemeRegistry = \
httpClient.getConnectionManager().getSchemeRegistry();<br>&gt; \
<br><br><br>------------------------------------------------------------------------------<br><br>_______________________________________________<br>HtmlUnit-develop \
mailing list<br><a ymailto="mailto:HtmlUnit-develop@lists.sourceforge.net" \
href="mailto:HtmlUnit-develop@lists.sourceforge.net">HtmlUnit-develop@lists.sourceforge.net</a><br><a \
href="https://lists.sourceforge.net/lists/listinfo/htmlunit-develop" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/htmlunit-develop</a><br></div></div>
 </div><br>

      </body></html>



------------------------------------------------------------------------------



_______________________________________________
HtmlUnit-develop mailing list
HtmlUnit-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic