Ping a server in an ASP page?

Results 1 to 3 of 3

Thread: Ping a server in an ASP page?

  1. #1
    Join Date
    Dec 1969

    Default Ping a server in an ASP page?

    Hello. If something on an ASP page is relying on the availability of an unreliable third-party server, is there a way to ping it and skip executing a block of code in the event it does not respond? The third-party service displays ads hosted on their end. Sometimes the web server that hosts those pages is slow or times out. We plan to drop them eventually, but for now we&#039;d like to quickly wrap some code around the spot the ads display and see if a connection is available. If not, we want to avoid waiting around while the rest of our page suffers.<BR><BR>Thanks!

  2. #2
    Join Date
    Dec 1969

    Default RE: Ping a server in an ASP page?

    You could use XMLHTTP object to bring the Ad into your own page. if you get a failed response, ie not HTTP 200, then do your own thing!<BR><BR>This should work, never done it myself, but I imagine it would, Correct me if I&#039;m wrong! :-)<BR>

  3. #3
    Join Date
    Dec 1969

    Default Just as slow.

    You are going to FIRST download the image (timing out if it can&#039;t) and THEN display the page.<BR><BR>You might as well just display the page.<BR><BR>I&#039;d try to fiddle w/ your HTML to take the banner ads out of the tables as much as possible.

Posting Permissions

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