I am sending POST request to some REST API. One of parameters in request body is a url address. My code is following:
var recordUrl = $dialer.getCallRecordingFullUrl();
var url = "<api url>";
var options = {
headers: {},
body: {
...
"RECORD_URL": recordUrl
}
};
var response = $http.post(url, options);
recordUrl has value like that
https://...b7d7c0a62
(without trailing backslash). But when I send post query this value turns to
https://...b7d7c0a62\
(with trailing backslash).
This invalidates the url address sent. How to solve this issue?