#450 HTTPS + Java 1.7

open
nobody
None
5
2013-02-06
2013-02-06
No

Is HTTPUnit supports Java 1.7?

I've got test with https url. Everything is ok when I using java 1.6. Problem occurs when I switch Java to 1.7.

HttpUnitOptions.setScriptingEnabled(false);
HttpUnitOptions.setDefaultCharacterSet("UTF8");
webConversation = new WebConversation();
ClientProperties clientProperties = webConversation.getClientProperties();
clientProperties.setUserAgent(C_AGENT);
clientProperties.setAutoRefresh(true);
WebRequest request = new GetMethodWebRequest(https_url);
return webConversation.getResponse(request);

I pasted headers from url when i using ff browser below:
Request headers:
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: pl,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip, deflate
Connection: keep-alive

Response headers:
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
X-Powered-By: Servlet/3.0
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
Strict-Transport-Security: max-age=8640000; includeSubDomains
X-Frame-Options: DENY
Content-security-policy: default-src https: 'unsafe-inline' 'unsafe-eval'
Pragma: no-cache
Cache-Control: no-cache, max-age=0, must-revalidate
Content-Language: pl
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Content-Encoding: gzip
Vary: accept-encoding
Transfer-Encoding: chunked

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks