West Wind Internet Protocols 4.68 |
wwHTTP::HTTPPing
|
Syntax: |
o.HTTPPing(lnTimeout,lcUrl) |
| Return: | .T. or .F. On error cErrorMsg is set with an error number string. |
| Parameters: |
lnTimeout Timeout in seconds. lcUrl Examples: lcServer and lcLink Example: |
| Example: | oIP = CREATEOBJECT("wwHttp")
*** Optionally - set any oIP Connection options
oIP.cUsername = "ricks"
oIP.cPassword = "supersecret"
IF !oIP.HTTPPing(5,"http://www.west-wind.com/somepage.htm")
MessageBox("No Connection")
RETURN
ENDIF
|
| Remarks: | This routine is not a PING like operation, but it works only over the HTTP protocol. You can use this routine to check for an Internet Connection by accessing a known up site (such as Microsoft.com or Yahoo.com).
|
See also: