title: iOS HttpUrlResponse Header Field Case Sensitivity
body: <p>When attempting to get the headers from an HttpUrlResponse, I am finding the iOS simulator is case-insensitive and a real device is case-sensitive. </p>
  
  <blockquote>
    <p>The web service returns an HTTP header "Grandmas-Cookies: XXXX"</p>
  </blockquote>
  
  <p><strong>When the header key has uppercase letters</strong>:
  <code>urlResponse.response.allHeaderFields["Grandmas-Cookies"] as? String</code></p>
  
  <ul>
  <li>The simulator does NOT find the key.</li>
  <li>A real device sees the key.</li>
  </ul>
  
  <p><strong>When the header key has all lowercase letters</strong>:
  <code>urlResponse.response.allHeaderFields["grandmas-cookies"] as? String</code></p>
  
  <ul>
  <li>The simulator does find the key.</li>
  <li>A real device does NOT see the key.</li>
  </ul>
  
  <p>Is there a setting I can make to the simulator to behave similarly to the real device? Changing the HTTP headers in the web service to lowercase is not desirable at this point but it is strange this started occurring only recently (yeah it's one of those fun times).</p>