fetch body show in php code
$entityBody = file_get_contents('php://input');
fetch body show in php code
$entityBody = file_get_contents('php://input');
fetch body show in php code
$entityBody = stream_get_contents(STDIN);
fetch method post handing the post add on php
// if you are going to use post method you need to send the data/body using the formdata object
var url = '/your/url';
var formData = new FormData();
formData.append('x', 'hello');
fetch(url, { method: 'POST', body: formData })
.then(function (response) {
return response.text();
})
.then(function (body) {
console.log(body);
});
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us