Index: includes/common.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/common.inc,v
retrieving revision 1.865
diff -u -p -r1.865 common.inc
--- includes/common.inc	9 Feb 2009 03:29:53 -0000	1.865
+++ includes/common.inc	9 Feb 2009 16:10:44 -0000
@@ -576,7 +576,15 @@ function drupal_http_request($url, array
   $response = preg_split("/\r\n|\n|\r/", $response);
 
   // Parse the response status line.
-  list($protocol, $code, $status) = explode(' ', trim(array_shift($response)), 3);
+  // If the response does not include a description, don't try to process it.
+  // The test length of 13 includes the protocol, a space, the response code
+  // and one additional space, e.g., "HTTP/1.1 200 "
+  if (strlen($split[0]) > 13) {
+    list($protocol, $code, $status) = explode(' ', trim(array_shift($response)), 3);
+  }
+  else {
+    list($protocol, $code) = explode(' ', trim(array_shift($response)), 2);
+  }
   $result->headers = array();
 
   // Parse the response headers.
