title: How to do curl custom header request with net/http ruby
body: <p>I am trying to create a function with net/http for below curl commands</p>
  
  <p>curl -H 'Authorization: Bearer OAuth2-token' <a href="https://stage.api.example.com/ssoclient/users/v1/domain_client" rel="nofollow">https://stage.api.example.com/ssoclient/users/v1/domain_client</a>
  curl -H 'content-type: application/JSON' -d @example.JSON OAuth2-url</p>
  
  <p>I am able to create a function using rest-client like below
  RestClient.get 'OAuth2-url', {'Authorization' => 'Bearer OAuth2-auth'}</p>
  
  <p>I get the expected JSON object when i use rest-client, how can i achieve the same with net/http. </p>
  
  <p>Thanks,</p>