Re: Problem with HttpUnit
"Wolfgang Fahl" <[email protected]> Thu, 20 Aug 2009 14:04:57 +0200
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Organization | BITPlan GmbH |
| Message-ID | <[email protected]> |
Dear Andreas HttpUnit behaves according to it JUnit Testcases. These are oriented around the available specs. Given that there is a 9 year history of HttpUnit any changes need to make sure that no test cases break. You might want to look at the trunk version in subversion since there have been modifications since the 1.7 release regarding the cookie handling. Otherwise please supply a test case + patch according to the FAQ. Thanks. Yours Wolfgang > Dear HttpUnit Team, > > I do have a problem concerning cookie handling when using HttpUnit 1.7. > I try to monitor an application with login page that makes an redirect. > > Here is an short extract of the communication > ***Request > GET https://a.b.c:456/login > ***Response > HTTP 302 Found > SET-COOKIE=SECID=xyz; Domain=.a.b.c; path=/; Secure > LOCATION=/cookie-check > > The cookie is rejected with reason 3 indicating that the domain > attribute is not a suffix of the source domain issuing the cookie. > I suggest it is because of the leading dot in the domain attribute, > also the order of the domain, path and secure attribute seems to be > important. > > My problem is that the communication works with IE(6.0 SP2) and > FireFox(3.0.8) but not with HttpUnit. > Even setting CookieProperties.setDomainMatchingStrict(false) doesn't > bring a change. > > So I do have the following questions: > Is there any chance to make WebClient behave as IE or FireFox? > If not, what is the reason why HttpUnit behaves that strict? > > Mit freundlichen Grüssen / with kind regards > Andreas Ewertz > > > ------------------------------------------------------------------------------ > The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your > production scanning environment may not be a perfect world - but thanks to > Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 > Series Scanner you'll get full speed at 300 dpi even with all image > processing features enabled. http://p.sf.net/sfu/kodak-com > _______________________________________________ > Httpunit-develop mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/httpunit-develop > BITPlan - smart solutions Pater-Delp-Str. 1, D-47877 Willich Schiefbahn Tel. +49 2154 811-480, Fax +49 2154 811-481 Web: http://www.bitplan.de bitplan GmbH, Willich - HRB 6820 Krefeld, VAT-ID: 10258040548, Geschäftsführer: Wolfgang Fahl ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Httpunit-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/httpunit-develop