I want to deconstruct this url
this works
$http.post('http://mysrc:8080/calc?country=Usa&city=NewYork', {
{'Authorization': 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==' }
});
to use params insted
this doesn't work
$http.post('http://mysrv:8080/calc?', {
params: { country: "Usa", city: "NewYork" },
headers: {'Authorization': 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==', }
});