0
I am 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 cannot use Httppostxml, because in my case I need to send a flag in the header and this other method does not allow.
This link below says that it is possible to send via Httppost, but does not explain
http://tdn.totvs.com/display/tec/HTTPPostXml
Someone would know?
Thank you
The documentation is not the best, see if that help you.
– Homer Simpson
This TDN documentation has no example for file uploading.
– Felipe
Shouldn’t you be passing XML on the Post body? (cPostParams)
– thur
I’ve tried, but it seems Protheus isn’t riding properly.
– Felipe