Port function drupal_http_request() to Drupal 7.