-
Internet object.
Hey guys i created an object which called oIE
now i got several URL and i want to check if they exist.
4 example www.stsas.com not exist, so when i write
oIE.Nevigate (URL)
sleep 3000 <---- i give it 3 secs to try to connect
if oIE.busy then
not_found
else: found
end if
but it says 4 example that it found...
now i think it cuz it gets 404 error, now is there any way to check if the URL is "DEAD" or not?
-
First, www.stsas.com does exist...tried going there:
"Submersible Technology Services A/S" is the title of the company.
At any rate, www.blabjalbjal.com does not exist, and the url is transfigured (in IE) to be http://search.msn.com/dnserror.aspx?...labjalbjal.com
So, you could check for the text "dnserror.aspx" in the url...but that isn't going to completely solve your problem. There are a lot of companies that actually produce their own 404 page and the text on the page says something like "the (insert company name here) page you are looking for does not exist."
A lot of times, though, those actually have "404" in the url...but my solution here has some fatal flaws, which I realize, but I'll keep searching.