Message
From
16/03/2017 05:30:30
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
Check for internet connection via proxy
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01649101
Message ID:
01649101
Views:
57
How can I check internet connection in LAN environment through proxy? I use code

#DEFINE FLAG_ICC_FORCE_CONNECTION 1
DECLARE Long InternetCheckConnection IN Wininet.dll String Url, Long dwFlags, Long Reserved

lcUrl = "http://www.google.com"
IF InternetCheckConnection(lcUrl, FLAG_ICC_FORCE_CONNECTION, 0) != 0
? "Connection is available"
ELSE
? "No Connection"
ENDIF

and it allways returns "no connection" on PC with proxy. On PC without proxy everything works fine.

Thanks in advance.
Next
Reply
Map
View