I am writing some transition code to another resource, so if my desktop application cannot connect to its website, it may instead try to create a backup website.
However, I cannot figure out how to simulate a test if the site is down or not. If I try the wrong URL, for example "http: //www.mybadsite.badTLD", my ISP will send me to the default catch page.
At a time when the site is really unavailable, and you cannot connect to it, you will receive a message in the browser that says that it cannot connect. This is what I need to imitate.
thank
mikew source
share