Index: includes/common.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/common.inc,v retrieving revision 1.465 diff -u -F^f -r1.465 common.inc --- includes/common.inc 1 Aug 2005 05:14:05 -0000 1.465 +++ includes/common.inc 10 Aug 2005 17:57:26 -0000 @@ -351,7 +351,12 @@ function drupal_http_request($url, $head // Parse headers. while ($line = trim(array_shift($headers))) { list($header, $value) = explode(':', $line, 2); - $result->headers[$header] = trim($value); + if ($header == 'Set-Cookie' && isset($result->headers[$header])) { + $result->headers[$header] .= ','. trim($value); + } + else { + $result->headers[$header] = trim($value); + } } $responses = array(