title: Authorization header in Http Request in linkedin
body: <p>Hi in my servlet code I am requesting the server with access_token on behalf of user i am able to request with below code:    </p>
  
  <pre><code>OAuthRequest request2 = new OAuthRequest(Verb.GET,"https://api.linkedin.com/v1/people/~:(first-name,last-name,email-address)?oauth2_access_token="+accesstok);
  </code></pre>
  
  <p>But How i can request with Authorization Header like below:</p>
  
  <pre><code>GET /v1/people/~ HTTP/1.1
  Host: api.linkedin.com
  Connection: Keep-Alive
  Authorization: Bearer AQXdSP_W41_UPs5ioT_t8HESyODB4FqbkJ8LrV_5mff4gPODzOYR
  </code></pre>
  
  <p>I am using in the below way but not wrking:</p>
  
  <pre><code>private static final String PROTECTED_RESOURCE_URL = "/v1/people/~:(first-name,last-   name,email-address) HTTP/1.1 Host: api.linkedin.com Connection: Keep-Alive Authorization: Bearer ";
  Object AccessToken=  o.get("access_token"); 
  
  String accesstok=AccessToken.toString();
  
  OAuthRequest request2 = new OAuthRequest(Verb.GET,PROTECTED_RESOURCE_URL+accesstok);
  </code></pre>
  
  <p>Thank You</p>