Hi,
Do any of you have experience with HTTP Post from Natural for windoes ?
I have tried “Msxml2.XMLHTTP”, “Microsoft.XMLHTTP” and “WinHttp.WinHttpRequest”.
The first two gives me a parameter error (using datatype (A) or (B). I need to send the ‘request’ as binary), and the last one do not give me the expected result when using a variable as parameter.
Eksample :
CREATE OBJECT #Object OF CLASS “WinHttp.WinHttpRequest.5.1”
send ‘open’ to #Object
with ‘POST’ request-string ‘false’ (request-string is the URL (A))
send ‘send’ to #Object
with my-request (my-request is the ‘body’ (A) or (B))
SEND “ResponseText” TO #Object
RETURN Response-text (Response-text is the response (A))
I have tried to set the Content-type in the RequestHeader.
One strange ting is that if I do like this : (Not using a variable to hold the request)
send ‘send’ to #Object
with “The request”
It works…
Regards Claus