I am making a post http request, but without success ...
Actually I have a success in the header the same returns, however the body is not rolling.
My code looks like this:
postRequest() {
let myHeader = new Headers({
"Content-Type" : "application/x-www-form-urlencoded",
});
let options = new RequestOptions({
headers: myHeader
});
let body = JSON.stringify({
key: "versao" , value:"1.1"
});
In the body I need a request Body with the key and value to return the query done in webservice.
I have seen in some sites that say that the body has to be written in the format "application / x-www-form-urlencoded".
could help?