title: How to include UserID and Password in the http header?
body: <pre><code>            string requestPath = "http://host/user/register";
  
              string RegJson = JsonConvert.SerializeObject(userProfile);
              WebRequest request = WebRequest.Create(requestPath);
              request.Headers.Add("UserID:"+ userID +";");
              request.Headers.Add("Password:" + password + ";");
              request.ContentType = "application/json; charset=utf-8";
              request.Method = "POST";
  </code></pre>
  
  <p>Here userprofile i am converting to json and use that for the webrequest call. After registration and login, i need to include userID and password in the header for every request. I'm not sure weather I am passing UserID &amp; Password properly in the header or not.   </p>
  
  <p>IT SHOULD APPEAR AS BELOW IN HEADER:</p>
  
  <p>POST /MyURL/ HTTP/1.1 <br/>
  Host    hostname <br/>
  Content-Length  396 <br/>
  Origin  chrome-extension://cokgbflfommojglbmbpenpphppikmonn <br/>
  UserID        12345 <br/>
  Password        98765abc <br/>
  User-Agent      Mozilla/5.0  <br/> 
  AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11 <br/>
  Content-Type    application/json <br/>
  Accept  <em>/</em> <br/>
  Accept-Encoding gzip,deflate,sdch <br/>
  Accept-Language en-US,en;q=0. <br/></p>
  
  <p>I tried   request.Headers.Add("UserID:"+ userID_Value +";");</p>