Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
CLuksha #1
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
-
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... -
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... -
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) {... -
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... -
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... -
Eddie #2
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
-
dempster #3
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
-
CLuksha #4
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



Reply With Quote

