loIP = CREATE( "wwSocket")
loIP.lStripNulls = .T.
llOkay = loIP.connect(lcServer, lnPort)
llOkay = loIP.Send(lcinput + CHR(0))
lcreceive = loIP.Receive(150)
Thanks again Rick for such great tools.
Greg
Hi there,
I'm trying to send a command defined in XML with UTF-8 encoding via sockets to a 3rd party application. So far (with no luck) I have taken the following approach:
lccmd = [<?xml version="1.0" encoding="UTF-8"?><Command group="default" type="add_user" user_id="1001" />]
lcServer = [127.0.0.1]
lnPort = 11115
lnTimeout = 15
lcreturn = loIP.socketsend(lccmd,lcServer,lnPort,lnTimeout,@lcError)
*****
So far, all that happens is the loIP.socketsend times out, as indicated by the lcError parameter.
I am new to xml and UTF-8 encoding and am hoping this will be obvious to someone. Thanks.
Greg