Answers for "https.request options object parameters"

0

https.request options object parameters

var options = {
  hostname: 'encrypted.google.com',
  port: 443,
  path: '/',
  method: 'GET',
  key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
  cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'),
  agent: false
};

var req = https.request(options, function(res) {
  ...
}
Posted by: Guest on April-25-2020

Code answers related to "https.request options object parameters"

Browse Popular Code Answers by Language