I am using Javascript to send an asynchronous request to a Django View. The View is able to receive data from the POST request, but I can’t seem to return a message to confirm that everything worked. I was expecting that xhttp.responseText would contain the message Thankyou, but it is empty. The html part looks like this: The javascript looks
Tag: httpresponse
save response of http request on variable and extract it from the function on node.js
just need to console.log output in a variable (let body on my code) rather than in the console, and res.send (“body” not “data” that send now) this variable on angular/postman where make the request as a response. if i console.log(body: ${body}) inside the function, give the same result on terminal as process.stdout.write(d). So my problem is how to extract the