I know how to send normal Text via WinHTTP 5.1 Automation and how to turn the reponse stream into an BigText object.
Now I want to send the content of a BigText via POST/PUT basicly this:
CREATE(bigText);
bigText.ADDTEXT('...');
...
CREATE(HTTP, TRUE, TRUE);
HTTP.OPEN('PUT', 'https://...', FALSE);
HTTP.SetCredentials('...', '...', 0);
HTTP.SEND(bigText);
The codeunit actually compiles and the automation object does send the request to the server, however with empty request body.
I tried to use OutStream but than the codeunit does not compile (Automation := OutStream).
I am using Dynamics NAV 2009 SP1, so no DotNet DataType available as well.