On Fri, Jan 9, 2015 at 4:22 AM, clipper6 <
arl...@gmail.com> wrote:
> Out of desperation since I don't know the parameters/syntax of post in
> harbour what I did was generate a page containing a javascript that passes
> all the parameters to a url. It's not elegant but that should do for now.
The simplest way is to pass an hash. Try this:
function main()
local cUrl := "
http://yoururl"
local hFields := {=>}
local cRetBuf
local oURL
local oClient
hFields[ "id1" ] := "data1"
hFields[ "id2" ] := "data2""
oURL := tURL():New( cUrl )
oClient := TIpClientHttp():new( oUrl )
oClient:nConnTimeout := 2000
if oClient:Open()
qout( "Open", oClient:lastErrorMessage() )
oClient:Post( hFields )
qout( "Post", oClient:lastErrorMessage() )
cRetBuf := oClient:Read()
qout( "Read", oClient:lastErrorMessage() )
endif
oClient:Close()
qout( "Close", oClient:lastErrorMessage() )
qout( hJson )
return nil
best regards,
Lorenzo