There are times when my download fails, but I still have data to read. For example, if I were to have an erroneous URL, I may download something like this
- Code: Select all
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<title>404 Not Found</title>
<p>The requested URL /~mathew/YourApp/YourAppsUpdateInstaller.exe was not found on this server.</p>
When I thought I had downloaded an executable. The web server is indeed responding with a 404, but I can't find any place in the URL WebInputStream (private) or InputStream that gives access to anything like this. What ends up happening is that juce doesn't pay attention to the 404 and just downloads the file as if the server responded with a 200.
Are there plans to add the HTTP response to the URL or WebInputStream classes? Is it already there and I just missed it?