Subject: | Re: HTTP POST
| Date: | Thu, 2 Nov 2017 08:33:24 +0100
| From: | "modridirkac" <jure.zorko@gmail.com>
| Newsgroups: | pnews.paradox-programming
|
Uf, I solved it with this code.
Difference is in
oaXMLHTTP^setRequestHeader("Content-Type",
"application/x-www-form-urlencoded")
---------------------------
RequestURL =
"https://www.SomeWebShop.com/index.php?route=order/manage/updateStatus"
result = ""
isOK = false
msgStr = "status_id=19&order_id=45¬ify=0&comment=OK"
try
if oaXMLHTTP.open("MSXML2.XMLHTTP.3.0") then
oaXMLHTTP^open("POST",RequestURL, false)
oaXMLHTTP^setRequestHeader("Content-Type",
"application/x-www-form-urlencoded")
oaXMLHTTP^send(msgStr)
result = oaXMLHTTP^responseText
isOK = true
endif
onFail
endTry
if not isOK then
errorShow()
return
endif
result.view("Returned")
|