Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

https request

JScopieddoneconst https = require('https')const options = {  hostname: 'example.com',  port: 443,  path: '/todos',  method: 'GET'}
const req = https.request(options, res => {  console.log(`statusCode: ${res.statusCode}`)
  res.on('data', d => {    process.stdout.write(d)  })})
req.on('error', error => {  console.error(error)})
req.end()
Source by nodejs.dev #
 
PREVIOUS NEXT
Tagged: #https #request
ADD COMMENT
Topic
Name
3+5 =