1👍
If you are doing post processing, you can convert the Data to Json format and send it.
var post_data = {
your_post_name: this.state
};
axios
.post(url, JSON.stringify(post_data))
.then((response) => {
console.log(response);
})
.catch((error) => {
console.log(error);
});
or
axios
.post(url,JSON.stringify({your_post_name:this.state}))
.then((response) => {
console.log(response);
})
.catch((error) => {
console.log(error);
});
- [Answered ]-Baffled by python __str__ method and unicode behaviour
- [Answered ]-Load variables from a virtual env for a cron task on Azure web app server
- [Answered ]-How to create qr code from url in django? Calling from another function
- [Answered ]-AttributeError: 'ContactSerializer' object has no attribute 'get_status'
Source:stackexchange.com