title: How to pass authentication header (basic) to OData Service from a .NetClient
body: <p>I was trying to implement a client for a odata service by following this article</p>
  
  <p><a href="http://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api/odata-v4/create-an-odata-v4-client-app" rel="nofollow">http://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api/odata-v4/create-an-odata-v4-client-app</a> </p>
  
  <p><strong>Challanges that I had:</strong></p>
  
  <p>Following the steps in the article, I figured that </p>
  
  <p>1) the  (ProductClient).odata.config was not auto generated - we could create one though</p>
  
  <p>2) Client that requires credentials to access the endpoint (well in my case it was basic auth)</p>
  
  <p>3) Most important- couldnt find a related article on stackoverflow as well :)</p>
  
  <p>Have posted the solution below for newbies like me!</p>