Index: drupal_web_test_case.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/simpletest/drupal_web_test_case.php,v
retrieving revision 1.2.2.3.2.22
diff -u -p -r1.2.2.3.2.22 drupal_web_test_case.php
--- drupal_web_test_case.php	3 Dec 2008 06:42:45 -0000	1.2.2.3.2.22
+++ drupal_web_test_case.php	9 Dec 2008 22:25:40 -0000
@@ -776,8 +776,8 @@ class DrupalWebTestCase {
    * Initializes the cURL connection and gets a session cookie.
    *
    * This function will add authentication headers as specified in
-   * simpletest_httpauth_username and simpletest_httpauth_pass variables.
-   * Also, see the description of $curl_options among the properties.
+   * simpletest_httpauth_username and simpletest_httpauth_pass variables. Also,
+   * see the description of $curl_options among the properties.
    */
   protected function curlConnect() {
     global $base_url, $db_prefix;
@@ -801,7 +801,7 @@ class DrupalWebTestCase {
         }
         $curl_options[CURLOPT_USERPWD] = $auth;
       }
-      return $this->curlExec($curl_options);
+      curl_setopt_array($this->ch, $this->curl_options + $curl_options);
     }
   }
 
