Your Digital Media Has Never Looked So Good

 
ravi
Topic Author
Posts: 12
Joined: Wed Mar 17, 2010 6:15 am

regarding roURlTransfer

Fri Jun 18, 2010 6:44 am

hi,

iam using roUrlTransfer to fetch data from a server.
My question is how do recognize whether server is connected or not.
if not connected how to identify the connection is not successfull.
It should throw an error when internet connection is not available.

Ravi Pulluri.
 
ravi
Topic Author
Posts: 12
Joined: Wed Mar 17, 2010 6:15 am

Re: regarding roURlTransfer

Mon Jun 21, 2010 1:15 am

can somebody quickly reply please...
 
greubel
Posts: 708
Joined: Wed Feb 10, 2010 4:21 pm

Re: regarding roURlTransfer

Mon Jun 21, 2010 7:13 am

Pass ping() a url for some file on your server. "http://www.myserver.com/chk.txt"

Function Ping( url as string ) as boolean
? "* Ping "+url

o = CreateObject( "roUrlTransfer" )
o.SetUrl( url )
ev = sock.Head()
x = ev.GetResponseCode()
if x <> 200
return false
endif

return true

End Function

Who is online

Users browsing this forum: No registered users and 6 guests