Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  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()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement