title: ASIHTTPRequest and ASIWebPageRequest loading local html file error
body: <p>I'm trying to use the ASIWebPageRequest to load a local html file so that I can use the built-in caching in ASIWebPageRequest. I know this might sound a bit pointless however I want to use remote images in my local files that only get updated once a week or so. If that makes sense.</p>
  
  <p>Here is what I'm doing in code:</p>
  
  <pre><code>//OUTPUT: file:///Users/ledixonuk/Library/Application%20Support/iPhone%20Simulator/4.3.2/Applications/FDF21331-CC80-4ECB-9A33-16AEC073D117/Documents/ItemOne.html
  NSURL *fileUrl = [[NSURL alloc] initFileURLWithPath:[FileSystemHelper dataFilePathInDocuments:@"ItemOne.html"]];
  
  // Assume request is a property of our controller
  // First, we'll cancel any in-progress page load
  [[self webRequest] setDelegate:nil];
  [[self webRequest] cancel];
  
  [self setWebRequest:[ASIWebPageRequest requestWithURL:fileUrl]];
  [[self webRequest] setDelegate:self];
  [[self webRequest] setDidFailSelector:@selector(webPageFailed:)];
  [[self webRequest] setDidFinishSelector:@selector(webPageFinished:)];
  
  // Tell the request to replace urls in this page with local urls
  //[[self webRequest] setUrlReplacementMode:ASIReplaceExternalResourcesWithLocalURLs];
  
  // Tell the request to embed external resources directly in the page
  [[self webRequest] setUrlReplacementMode:ASIReplaceExternalResourcesWithData];
  
  // It is strongly recommended you use a download cache with ASIWebPageRequest
  // When using a cache, external resources are automatically stored in the cache
  // and can be pulled from the cache on subsequent page loads
  [[self webRequest] setDownloadCache:[ASIDownloadCache sharedCache]];
  
  // Ask the download cache for a place to store the cached data
  // This is the most efficient way for an ASIWebPageRequest to store a web page
  [[self webRequest] setDownloadDestinationPath:[[ASIDownloadCache sharedCache] pathToStoreCachedResponseDataForRequest:[self webRequest]]];
  
  [[self webRequest] startAsynchronous];
  </code></pre>
  
  <p>And here is the error I'm getting:</p>
  
  <blockquote>
    <p>
    404 Not Found
    </p>
    
    <h1>Not Found</h1>
    
    <p>The requested URL /Users/ledixonuk/Library/Application Support/iPhone  Simulator/4.3.2/Applications/FDF21331-CC80-4ECB-9A33-16AEC073D117/Documents/ItemOne.html was > not found on this server.</p>
    
    <p></p>
  </blockquote>
  
  <p>Obviously the ASIWebPageRequest can not find the ItemOne.html file in the application document folder, however I've double checked and the file is definitely there.</p>
  
  <p>Has anyone else had a similar issue to this? It's driving me mad trying to sort it out!</p>