Hi, I really love your Proxies and the web Scraping API in particular.
On the code example only shows one example for a get request for the url in the data... Can you please give an example using a post request... Let's say I have an api that the only accepts a post.
const axios = require('axios');
// I talking about adding a post here
let data = JSON.stringify({
"httpResponseBody": true
});
let config = {
method: 'post',
maxBodyLength: Infinity,
headers: {
'Content-Type': 'application/json',
'X-Api-Key': 'd5ac0c97-9990-445a-a680-5f01ac26c30c'
},
data : data
};
axios.request(config)
.then((response) => {
if (response.data.data.browserHtml) {
console.log(response.data.data.browserHtml);
} else {
console.log(Buffer.from(response.data.data.httpResponseBody, 'base64').toString());
}
})
.catch((error) => {
console.log(error);
});