Currently utilizing MobileFirst Platform 6.3, my aim is to send the request below:
var input = {
method : 'post',
path : "/create/item.aspx",
body: {
contentType:'application/json; charset=UTF-8',
content: JSON.stringify([{"item": "name"}])
}
};
var outputObj = WL.Server.invokeHttp(input);
In an effort to simplify the issue, I have minimized the request as much as possible. Strangely, it seems that having a string containing an array in the body.content section is causing some unknown behavior, resulting in the body not being transmitted to the backend.
Unfortunately, modifying the backend is not an option for me, so alternative solutions such as wrapping the array or changing the input structure are out of the question.
If anyone could shed some light on why this might be happening with my body content and offer advice on how to prevent WorkLight from altering it, I would greatly appreciate it.