How to encode both content and URL of any HTTP request in AngularJs?
I came through these solutions, but they are not enough for me:
for encoding only one request url : $http.get(encodeURI('your web request url'))
for content of request:
$httpProvider.defaults.headers.common['Content-Type'] = 'application/x-www-form-urlencoded;charset=utf-8';
$httpProvider.defaults.transformRequest = [function(data, headers) {
return angular.isobject(data) && string(data) !== '[object file]' ? jquery.param(data) : data;
}];