I’m downloading files from a server and need to know if for some reason the download fails.
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
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL /~mathew/YourApp/YourAppsUpdateInstaller.exe was not found on this server.</p> </body></html>
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?