diff --git a/includes/common.inc b/includes/common.inc
index 5dadb4d..6dc22c1 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -842,6 +842,10 @@ function drupal_http_request($url, array $options = array()) {
   if (isset($uri['query'])) {
     $path .= '?' . $uri['query'];
   }
+  // Append the anchor
+  if (isset($uri['fragment'])) {
+    $path .= '#' . $uri['fragment'];
+  }
 
   // Merge the default headers.
   $options['headers'] += array(
