Results 1 to 2 of 2

Thread: Internet object.

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Location
    IL
    Posts
    156

    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?

  2. #2
    Hyperactive Member
    Join Date
    May 2002
    Location
    Omaha, NE
    Posts
    263
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width