Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function get(url, options) {
var multi = new Multi();
var curl = new Easy();
curl.setOpt('URL', url);
if(options.header) {
curl.setOpt('HTTPHEADER', options.header);
}
if(options.cookie) {
curl.setOpt('COOKIE', options.cookie);
}
curl.setOpt('FOLLOWLOCATION', true);
curl.setOpt('HEADER', false);
curl.setOpt('FORBID_REUSE', true);
curl.setOpt('AUTOREFERER', true);