Currently we use the same method as drupal_http_request to parse header data. Instead we should use the built in curl functionality.