Update of /cvsroot/httpunit/httpunit/sitedocs/doc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20516/sitedocs/doc
Modified Files:
faq.xml
Log Message:
Accept specified cookie domains lacking a leading dot
Index: faq.xml
===================================================================
RCS file: /cvsroot/httpunit/httpunit/sitedocs/doc/faq.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- faq.xml 21 Aug 2003 11:52:37 -0000 1.3
+++ faq.xml 12 Feb 2004 13:03:24 -0000 1.4
@@ -51,6 +51,18 @@
<answer>Badly. Unfortunately, through JDK 1.3, HttpURLConnection (used by HttpUnit to access web servers) has no support for timeouts.
Supposedly, this is changed in JDK 1.4, but HttpUnit does not support the new feature as yet.</answer>
</faq>
+ <faq>
+ <question>Why isn't HttpUnit seeing cookies from my site?</question>
+ <answer><![CDATA[According to the <a href="http://www.faqs.org/rfcs/rfc2965.html">Cookie specification>/a>,
+ sites may specify a domain and path to restrict the scope of their cookies. These specifications
+ must follow certain rules, and the vast majority of sites do. Unfortunately, there are some
+ popular sites (such as Yahoo.com) which do not. By default, HttpUnit is very strict about
+ implementing the spec, and will reject such cookies. You can control this behavior by calls to the
+ <a href="api/com/meterware/httpunit/cookies/CookieProperties.html">CookieProperties</a> class.
+ If you suspect that this is happening, you can also register a
+ <a href="api/com/meterware/httpunit/cookies/CookieListener.html">CookieListener</a> to watch for cookies
+ being rejected.]]</answer>
+ </faq>
</section>
<section title="Form Handling Problems">
@@ -59,7 +71,7 @@
<answer><![CDATA[The setParameter call lets you specify the values per parameter name. An unchecked checkbox has no value to transmit, so you would call:
<pre><code> form.setParameter( "checkbox-name", new String[0] );</code></pre> or
<pre><code> form.removeParameter( "checkbox-name" );</code></pre>
- As of 1.5.4, you have alternatives. If the checkbox's name is unique, you can say:
+ If the checkbox's name is unique, you can say:
<pre><code> form.setCheckbox( "checkbox-name", false );</code></pre> or
<pre><code> form.toggleCheckbox( "checkbox-name" );</code></pre>]]></answer>
</faq>
|