title: HTTP Authentication Headers for IIS windows authentication
body: <p>I have a web site hosted on IIS with windows authentication. I am trying to access it in one  of my iPhone web application. Presently i am using this code, but it is not working.</p>
  
  <p>NSString *authString = [[[NSString stringWithFormat:@"%@:%@", @"myusername", @"mypassword"]dataUsingEncoding:NSUTF8StringEncoding] base64Encoding];</p>
  
  <pre><code>authString = [NSString stringWithFormat: @"Basic %@", authString];
  
  **[requestObj setValue:authString forHTTPHeaderField:@"Authorization"];**
  </code></pre>
  
  <p>my web app is hosted with windows authentication. but here i am using basic. can any one post what is the correct http header for it.</p>
  
  <p>Thanks..</p>