Hi, thank for your suggest.
I tried but always return nil.
Did I make something wrong ?
include "FiveWin.ch"
static oWnd
//----------------------------------------------------------------------------//
function Main()
local oBar
DEFINE WINDOW oWnd TITLE "WebClient test"
DEFINE BUTTONBAR oBar 3D OF oWnd
DEFINE BUTTON OF oBar ACTION WebClient()
ACTIVATE WINDOW oWnd
return nil
function WebClient()
local oWebClient,cad, cstring
cString:="GET <!-- m --><a class="postlink" href="http://condominio.emessage.it/CheckAgent.aspx?Userid=pippo&Password=pluto&Agente=Softwarexp">http://condominio.emessage.it/CheckAgen ... Softwarexp</a><!-- m --> HTTP/1.0"+CHR(13)+CHR(10)+"Host: <!-- m --><a class="postlink" href="http://condominio.emessage.it">http://condominio.emessage.it</a><!-- m -->"+chr(13)+chr(10)
oWebClient := TWebClient():New()
oWebClient:Connect( "condominio.emessage.it" )
oWebClient:bOnRead = { | cData | cad+=cData }
oWebClient:oSocket:SendData( cString)
msginfo(cad)
return nil