title: Customizing Header of a Web API Requests via JQuery/JavaScript (AJAX) or WinForms
body: <p>I am learning and using <strong>Web API</strong> and need to implement following <strong>Authentication mechanism</strong>:</p>
  
  <blockquote>
    <p>Very First call to Web API will be a Handshaking (<strong>Login and token
    sharing</strong>). Login Method of the Web API will be called with the proper
    credentials, <strong>once approved a GUID based Token will be returned</strong> to the
    Client( A Jquery or Windows based). Token will be <strong>expired</strong> after some
    configurable time.</p>
    
    <p>Till then, <strong>client should be able to communicate with the WebAPI with
    sharing the same token value with every requests</strong>, thus wouldn't need
    to authenticate each call.</p>
    
    <p>For having Token in each call, it is quite possible to have it in each
    QueryString or have it in each param of the Web API method.</p>
  </blockquote>
  
  <p>But, I am looking for the possibilities Where <strong>Token can be embedded with the HTTPRequestHeader via JQuery (using AJAX calls) or Windows based clients.</strong> I would like if you guys could help me to identify the fair approach to implement this system and perils in advance.</p>