How do I send http authorization header in GET request in drupal? How do I send http Authorization header in http GET request in drupal ?

Every things else works except the authorization part. 

My custom module code:

/*
 *Implements hook_menu
 */
function mymodule_menu() {

$items['demo'] = array(
    'title' =&gt; 'Demo API integration with Drupal 7',
    'page callback' =&gt; 'demo_page',
    'access callback' =&gt; TRUE,
    'access arguments' =&gt; array('access content'),
    'type' =&gt; MENU_CALLBACK,
    );
return $items;
}

//page callback
function demo_page() {

$options = array(
  'method' =&gt; 'GET',
  'data' =&gt; '',
  'timeout' =&gt; 15,
  'headers' =&gt; array('Accept' =&gt; 'application/json',
                    'Authorization' =&gt; 'Basic SomeKey23412lkjdfadjfadfasd'),
);

$result = drupal_http_request('https://api.examlesite.com/test/', $options);
var_dump($result);
drupal_set_message("Result is processing");
return "hello world";
}
You can add basic authorization to url to access http basic protected address.

  // http auth
  $remote_url = 'http://uname:pw1234@example.com/service/node';