1const axios = require('axios')
2const qs = require('querystring')
3
4...
5
6const requestBody = {
7 name: 'Akexorcist',
8 age: '28',
9 position: 'Android Developer',
10 description: 'birthdate=25-12-1989&favourite=coding%20coding%20and%20coding&company=Nextzy%20Technologies&website=http://www.akexorcist.com/',
11 awesome: true
12}
13
14const config = {
15 headers: {
16 'Content-Type': 'application/x-www-form-urlencoded'
17 }
18}
19
20axios.post(url, qs.stringify(requestBody), config)
21 .then((result) => {
22 // Do somthing
23 })
24 .catch((err) => {
25 // Do somthing
26 })