Hi all,
I am sending Json file through httprequest by PUT Method in NAV 2017 but I am getting error Operation aborted while XMLHTTP.send(Msg);.
Below HttpRequest Headers:
CLEAR(XMLHTTP);
CREATE(XMLHTTP,FALSE,TRUE);
XMLHTTP.open(‘PUT’,URL,FALSE);
XMLHTTP.setRequestHeader('Content-Type: ',‘application/json’);
XMLHTTP.setRequestHeader('Authorization: ‘,Store.“Token Type”+’ '+AccessToken);
XMLHTTP.setRequestHeader(‘scope:’,Store.Scope);
XMLHTTP.setRequestHeader(‘client_secret:’,RestaurentIntegrationSetup.client_secret);
XMLHTTP.setRequestHeader('client_id: ',RestaurentIntegrationSetup.client_id);
{
Body
}
XMLHTTP.send(Msg);