title: NSURLErrorDomain error -999 using UIWebView
body: <p>I have a <code>UIWebView</code> in my iPhone application where I am loading the website. Basically I am opening the mobile website in app. In website, there is <code>media upload</code> functionality/ When user tries to upload photo(within mobile site), I am facing error is :-</p>
  
  <blockquote>
    <p>NSURLErrorDomain error -999</p>
  </blockquote>
  
  <p>The same web view(code) works fine with other URLs like www.apple.com and www.google.com.</p>
  
  <pre><code>NSURLRequest *request = [[NSURLRequest alloc]initWithURL:[NSURL URLWithString:self.urlToLoad]];
          [webview loadRequest:request];
  </code></pre>
  
  <p>It doesnt seem to be a redirect issue. How to fix the error?</p>
  
  <p>I am also getting the below warnings.</p>
  
  <blockquote>
    <p>WF: _userSettingsForUser mobile: {
        filterBlacklist =     (
        );
        filterWhitelist =     (
        );
        restrictWeb = 1;
        useContentFilter = 0;
        useContentFilterOverrides = 0;
        whitelistEnabled = 0; }</p>
  </blockquote>
  
  <p>Related error link:- <a href="https://discussions.apple.com/thread/1727260?start=0&amp;tstart=0" rel="nofollow noreferrer">https://discussions.apple.com/thread/1727260?start=0&amp;tstart=0</a></p>