• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

web service internet connection

New Here ,
Feb 28, 2008 Feb 28, 2008

Copy link to clipboard

Copied

Hi

I am working on an intranet system that uses an external internet webservice. In order to connect to the external webservice i have to connect to the internet. When the internet connection goes down and i try to get data back from the webservice the page just hangs up as it is waiting on a reply from the webservice.

How can i test in coldfusion for the internet connection being up?

I hope you can point me in right direction.

Stewart
TOPICS
Advanced techniques

Views

301

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 28, 2008 Feb 28, 2008

Copy link to clipboard

Copied

LATEST
<cftry>
<cfexecute name="ping.exe" timeout="10" arguments="-n 1 www.google.com" variable="isOnline" />
<cfdump var="#isOnline#">
<cfcatch>
<cfthrow message="ping process timed out" />
</cfcatch>
</cftry>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation