Solved

HTTPUnit and SSL questions

Posted on 2007-03-27
2
633 Views
Last Modified: 2012-08-14
Hi, there!

I am testing a SSL page with HTTP unit. I am not sure what kind of certificator we are using. But most probably from verisign.
But the does give following error:
java.io.EOFException: Unexpected end of ZLIB input stream.
Same codes is runnable against normally HTTP request.
My code is below:
 WebRequest request = new PostMethodWebRequest(firstPage);
WebResponse response = wc.getResponse(request);

0
Comment
Question by:JianJunShen
2 Comments
 
LVL 10

Accepted Solution

by:
ADSLMark earned 500 total points
ID: 18798477
You are running into the problem that HttpUnit wants to deflate a gzipped page, while the zlib input stream doesn't work correctly (not your fault).
Here is another discussion about same problem:

http://www.arcknowledge.com/gmane.comp.web.httpunit.devel/2005-06/msg00039.html

it suggests to set to set the client property for accepting gzip to false:

ClientProperties.setAcceptGzip(boolean acceptGzip)

Another idea would be to catch the EOFException and just continue.
I hope it helps,

Mark
0
 

Author Comment

by:JianJunShen
ID: 18798758
HI, there!

Absolutely correct. If you want more points, please let me know. I could create another questions for you to answer.

Best regards,
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now