Posted: Mon Nov 11, 2019 2:27 pm Post subject: httprequest node - content length 0
Newbie
Joined: 01 Nov 2019 Posts: 4
Hello,
For sending a PUT request to a http server, I'm using an HttpRequest node. The message passes through an ESQL compute node. The issue is that the content length of the message sent to server is 0. The request does not contains any data, although the variable used for the body of the message has content.
How can I pass the content of a put http request from esql code?
The esql code is as follows:
SET OutputLocalEnvironment = InputLocalEnvironment;
SET OutputLocalEnvironment.Destination.HTTP.RequestURL = ...;
SET OutputRoot.HTTPRequestHeader."Content-Type" = 'text/plain';
SET OutputRoot.HTTPRequestHeader."Authorization" = 'Bearer ' || … ;
SET OutputRoot.HTTPRequestHeader."Host" = ...';
SET OutputRoot.BLOB = CAST(InputRoot.BLOB.BLOB as char CCSID 1208 Encoding 815);
The configuration of the HTTPRequest node is
HttpSettings
HTTP method: PUT
HTTP version 1.1
Enable keep-alive <checked>
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum