SHARE
TWEET

Untitled

a guest Jun 16th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const req = http.request(options, (res) => {
  2.             console.log(`statusCode: ${res.statusCode}`)    
  3.             res.on('data', (d) => {
  4.               process.stdout.write(d)
  5.             })
  6.           })
  7.             req.on('error', (error) => {
  8.             console.error(error)
  9.           })
  10.          req.write(data)      
  11.          req.end()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top