Return page availability

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Return page availability

    I am looking to create a scheduled task that pings 5 pages on the web site
    and then sends an email to the admin that the pages were in fact up and
    running. I am not sure of the best way to do this?

    I think that was simple enough to get the idea across. I don't need to show
    page load time - although it would be nice. What I need to do is simply
    ping the page and either have the response put into the email or have the
    email say the page was available or not.

    Any ideas? Solutions?

    Thanks!
    Chris

    --
    Chris Luksha
    Echo Web Services
    Making Your Website Resound
    [url]www.echowebservices.com[/url]


    CLuksha Guest

  2. Similar Questions and Discussions

    1. Home page return
      I have my web page uploaded from 2002. I have two problems. #1. I have 6 pages and it works OK until I try and return to the home page with the...
    2. last field does not return to top of page
      I have created 50+ forms with various fields and recently had to edit each one (addition of 2 buttons). Since then a small number of those forms have...
    3. Newbie Q: Return Error to Page?
      Hi, I have a web service method which will connect to a Access database, which look like below: public DataSet Search(string strSearch) {...
    4. Prevent 'Page has expired' when a client hits back to return to a search page
      I have a search page that I want to enable private caching so that when a user hits the back button they dont get the page has expired error. I...
    5. Using an asp page to return a sql query
      I know that there must be a way to do this, but in my limited knowledge I am stuck. I am using 2 tables 1. "BTstatus" BugIndex Date Entered...
  3. #2

    Default Re: Return page availability

    Your solution is to use cfhttp with method = "head". Check the
    documentation on cfhttp.
    --
    Eddie
    [url]http://eddieawad.blogspot.com/[/url]

    Eddie Guest

  4. #3

    Default Re: Return page availability

    You can use CFHTTP with try/catch error handling. If the page does not open,
    you will get an error message. You can compile these and place in your email.
    In CFHTTP, you can set a timeout value in seconds that tells you how long to
    wait before considering the request a failure.

    See example code.

    -Paul



    <CFTRY>
    <CFHTTP URL="http://www.mysite.com/anypage.html" METHOD="GET"
    RESOLVEURL="false" TIMEOUT="10" THROWONERROR="yes">
    </CFHTTP>
    <CFCATCH TYPE="Any">
    <CFSET pageError = CFCATCH.Message>
    </CFCATCH>
    </CFTRY>
    <CFIF IsDefined("pageError")>
    ...show error message or add to email
    </CFIF>

    dempster Guest

  5. #4

    Default Re: Return page availability

    Thanks for the code. I will give it a try this week.

    Chris

    --
    Chris Luksha
    Echo Web Services
    Making Your Website Resound
    [url]www.echowebservices.com[/url]
    "dempster" <webforumsuser@macromedia.com> wrote in message
    news:d7q7ji$76u$1@forums.macromedia.com...
    > You can use CFHTTP with try/catch error handling. If the page does not
    > open,
    > you will get an error message. You can compile these and place in your
    > email.
    > In CFHTTP, you can set a timeout value in seconds that tells you how long
    > to
    > wait before considering the request a failure.
    >
    > See example code.
    >
    > -Paul
    >
    >
    >
    > <CFTRY>
    > <CFHTTP URL="http://www.mysite.com/anypage.html" METHOD="GET"
    > RESOLVEURL="false" TIMEOUT="10" THROWONERROR="yes">
    > </CFHTTP>
    > <CFCATCH TYPE="Any">
    > <CFSET pageError = CFCATCH.Message>
    > </CFCATCH>
    > </CFTRY>
    > <CFIF IsDefined("pageError")>
    > ...show error message or add to email
    > </CFIF>
    >

    CLuksha Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139