Hi all,
I am using httpUnit 1.5.3, I used your class WebConversation and others to produce/encapsulate a list of Post requests to a server.
I use SSL, and with low-grade encryption works, but when I set the server to 128 bit encryption, it does not work.
Does httpUnit support 128 SSL bit encryption?
This is a part of the code, where I do the Post:
protected void execRequest(String inMsgBody) throws Exception { setAutoredirect(false);
PostMethodWebRequest req = new PostMethodWebRequest("https://" + url + ":" + port + path);
req.setParameter("xml_req", inMsgBody); logWebRequest(req);
// send post WebResponse resp= wc.getResponse(req); logWebResponse(resp);
}
com.meterware.httpunit.HttpException: Error on HTTP request: 403 Forbidden [https://host:posrt/cs/path]
at com.meterware.httpunit.WebClient.validateHeaders(WebClient.java:561)
at com.meterware.httpunit.WebClient.updateClient(WebClient.java:437)
at com.meterware.httpunit.WebWindow.updateWindow(WebWindow.java:136)
at com.meterware.httpunit.WebWindow.getSubframeResponse(WebWindow.java:127)
at com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:118)
at com.meterware.httpunit.WebClient.getResponse(WebClient.java:113)
at com.csg.cs.cch.test.ServletTest.execRequest(ServletTest.java:109)
at com.csg.cs.cch.test.PublicTemplateTest.sessionStartTest(PublicTemplateTest.java:40)
at com.csg.cs.cch.test.PublicTest.init(PublicTest.java:27)
at com.csg.cs.cch.test.PublicTest.main(PublicTest.java:19)
Exception in thread "main"
Does anyone knows, why I get this error, and what should I do so I can get it to work with 128 bit encryption?
Thanks. L.M.
Log in to post a comment.
Hi all,
I am using httpUnit 1.5.3, I used your class
WebConversation and others to produce/encapsulate a
list of Post requests to a server.
I use SSL, and with low-grade encryption works, but
when I set the server to 128 bit encryption, it does
not work.
Does httpUnit support 128 SSL bit encryption?
This is a part of the code, where I do the Post:
protected void execRequest(String inMsgBody) throws
Exception
{
setAutoredirect(false);
PostMethodWebRequest req =
new PostMethodWebRequest("https://" + url + ":" + port
+ path);
req.setParameter("xml_req", inMsgBody);
logWebRequest(req);
// send post
WebResponse resp= wc.getResponse(req);
logWebResponse(resp);
}
com.meterware.httpunit.HttpException: Error on HTTP
request: 403 Forbidden [https://host:posrt/cs/path]
at
com.meterware.httpunit.WebClient.validateHeaders(WebClient.java:561)
at
com.meterware.httpunit.WebClient.updateClient(WebClient.java:437)
at
com.meterware.httpunit.WebWindow.updateWindow(WebWindow.java:136)
at
com.meterware.httpunit.WebWindow.getSubframeResponse(WebWindow.java:127)
at
com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:118)
at
com.meterware.httpunit.WebClient.getResponse(WebClient.java:113)
at
com.csg.cs.cch.test.ServletTest.execRequest(ServletTest.java:109)
at
com.csg.cs.cch.test.PublicTemplateTest.sessionStartTest(PublicTemplateTest.java:40)
at com.csg.cs.cch.test.PublicTest.init(PublicTest.java:27)
at com.csg.cs.cch.test.PublicTest.main(PublicTest.java:19)
Exception in thread "main"
Does anyone knows, why I get this error, and what
should I do so I can get it to work with 128 bit
encryption?
Thanks.
L.M.