Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

request module nodejs

request  .get('http://google.com/img.png')
  .on('response', function(response) {
  console.log(response.statusCode) // 200
  console.log(response.headers['content-type']) // 'image/png'  }) 
    .pipe(request.put('http://mysite.com/img.png'))
Source by www.npmjs.com #
 
PREVIOUS NEXT
Tagged: #request #module #nodejs
ADD COMMENT
Topic
Name
3+7 =