I'm trying to send an xml file using HttpPost.
cUrl := "www.test.com"
cPostParms := 'mod=Upload'
cGetParms:=""
cHeadRet := ""
aHeadOut := {User-Agent: Mozilla/4.0 (compatible; Protheus '+GetBuild()+'}
HttpPost(cUrl, cGetParms, cPostParms, nTimeOut, aHeadOut, @cHeadRet)
I can not use HTTPPostXml, because in my case I need to send a flag in the header and this other method does not allow.
This link says that it is possible to send through HttpPost, but it does not explain
Would anyone know?
Thank you