Code: Select all
oConn:=TWebClient():New()
oConn:oSocket:lDebug :=.t.
oConn:oSocket:cLogFile:=cLog
oConn:bOnConnect := { | oS | oS:GetPage(cPage) }
oConn:bOnRead := { | cD, oS | cBuffer+=cD }
oConn:oSocket:bClose:= { | oS | ManageFile(cFile) }
oConn:Connect( cSite )
Code: Select all
09/24/2009 15:02:56: Sent: -1 Len: 112 Buffer Len: 0 Error: 10057
Code: Select all
if nSent != -1
cData = SubStr( cData, nSent + 1 )
nLen = Len( cData )
else
if WSAGetLastError() != WSAEWOULDBLOCK
// exit
endif
endif
SysRefresh()
Was it a mistake, and my solution is ok, or is there a reason for commenting that line ?
Thanks,
Davide
FWH 9.05 - xH 1.2.1