Index: modules/simpletest/drupal_web_test_case.php =================================================================== RCS file: /cvs/drupal/drupal/modules/simpletest/drupal_web_test_case.php,v retrieving revision 1.46 diff -u -r1.46 drupal_web_test_case.php --- modules/simpletest/drupal_web_test_case.php 1 Oct 2008 00:27:29 -0000 1.46 +++ modules/simpletest/drupal_web_test_case.php 2 Oct 2008 18:12:59 -0000 @@ -877,6 +877,16 @@ // previous options. $out = $this->curlExec(array(CURLOPT_HTTPGET => TRUE, CURLOPT_URL => url($path, $options), CURLOPT_HEADER => FALSE, CURLOPT_NOBODY => FALSE)); $this->refreshVariables(); // Ensure that any changes to variables in the other thread are picked up. + + // Check for meta refresh tag and if found call drupalGet recursively. + if ($this->parse()) { + $refresh = $this->xpath('//meta[@http-equiv="Refresh"]'); + if ($refresh) { + if (preg_match('/(\d+);[ ]+URL=(.*)/', $refresh['content'], $match)) { + $this->drupalGet($this->getAbsoluteUrl(urldecode($match[2]))); + } + } + } return $out; }