Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check for Internet being UP.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01229275
Message ID:
01229525
Vues:
22
Thanks for the info!

>Ping is not really a reliable protocol to use especially if you plan to use HTTP - more and more servers block Ping as a protocol.
>
>I still maintain the best way to check for internet connectivity is to hit a Web site that is most likely to be up and see if you get a result and do it with a timeout.
>
>In wwIPStuff I have a method wwHttpPing that does this. This has the additional advantage that you can point at a specific Web site so if you're planning on retrieving content from there you can get a pretty good idea whether that site is actually up.
>
>The key thing with any mechanism though is the timeout - whatever you do you don't want to synchronously check a connection that you might expect to be non-available for the TCP/IP timeout (about 40 seconds) and that gets a little bit tricky (in WinInet you have to set WinInet options for this for example).
>
>+++ Rick ---
>
>>>Hi Gang!
>>>
>>>Do you have guys have any suggestions for code or utilities to use in VFP to check if the Internet is UP to a certain URL (able to connect to the site) and return this info to VFP?
>>>
>>>Thanks!
>>
>>Can you somehow emulate a PING command in VFP?
Tommy Tillman A+ NetWork+ MCP
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform