1
I’m making an http post request, but without success...
I actually have a success in the header the same returns, but the body is not rolling.
My code is 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"
});
On the body I need a Body request with key and value to return the query made in the webservice.
I saw on some websites that say that the body has to be written in the format "application/x-www-form-urlencoded".
could help ?