const https = require('https');
const options = {
hostname: 'example.com',
method: 'GET',
headers: 'invalid_headers_format' // Headers should be an object, not a string
};
https.request(options, (res) => {
// Handle response
}).on('error', (error) => {
console.error('HTTPS request error:', error);
});