read the folder name from notepad.
Add the variable to the end of the extension whenever you need it.
hello there, i am tryng to use a service that provides residential proxies, but in order to use it i have to trust the certificate (a .pem file),
is there a way to add that certificate inside BAS?
the usual process is go to settings, security amd add certificate and point to the .pem file
i have been instructed that i can even use node.js, but if i use the snippet of code they gave me its not working
const fs = require('fs');
const path = require('path');
const cert = fs.readFileSync(path.resolve(__dirname, './public/ca.pem'));
const request = require('request');
request(
{
url: 'https://www.amazon.com/dp/B07HNW68ZC/',
proxy: 'http://PROXY_LOGIN:PROXY_PASS@PROXY_IP:PROXY_PORT',
ca: cert,
tunnel: true,
followAllRedirects: true,
timeout: 60000,
method: "GET",
gzip: true,
proxyHeaderWhiteList: ['X-Sprious-Region'],
headers: {
'X-Sprious-Region': 'GB',
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36',
}
},
(err, response, body) => {
console.log(err, body);
}
);
please let me know