Hi guys, I've been using "/v2/nodes/{id}/content" and noticed that in OTCS21.2 now the request comes with the HTTP headers and JSON object appended to the response.
I tested the same call against 20.4 and 21.2 and this is a new thing...
Anyone else got this?
Snippet:
$.ajax(
{
url: "/knowledge/llisapi.dll/api/v2/nodes/145450/content",
beforeSend: function(xhr) {xhr.setRequestHeader('otcsticket', token);
}
}).done(function(fileContent) {
console.log(fileContent);
})
Expected:
content text from txt file that I saved in OTCS
Actual result:
content text from txt file that I saved in OTCS
Cache-Control: no-cache, no-store, must-revalidate, max-age=0
Pragma: no-cache
Expires: 0
OTCSTicket: nKiGEuTkmhX3r9vvnjGiuUBekY+VKWz1an+Q5dm6v9Xrz6KgSA1P3SmdB+51kAPYZnMe8aFd2ywY/WqcjXxuzD8tJ1+wqBFwan5lwQIK+3HHEBArip5b+3ktkvWobOyoRChflBsh8FuDID0p3w3qp1vQUAX0fXlzwY50yRIfVASj8zaMgORi7Q==
OTCSTicketExpires: Tue, 21 Sep 2021 22:34:51 GMT
Status: 200 OK
Content-type: application/json; charset=UTF-8
Content-Length: 290
{"links":{"data":{"self":{"body":"","content_type":"","href":"\/api\/v2\/nodes\/145450\/content","method":"GET","name":""}}},"results":{"apiError":null,"errMsg":{"apiError":null,"errDetail":"","errMsg":"An unknown error occurred.","statusCode":0},"isCommitted":null,"ok":true}}