Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Using axios send a GET request to the address:

// GET request for remote image
axios({
  method: 'get',
  url: 'http://bit.ly/2mTM3nY',
  responseType: 'stream'
})
  .then(function(response) {
  response.data.pipe(fs.createWriteStream('ada_lovelace.jpg'))
});
Source by kapeli.com #
 
PREVIOUS NEXT
Tagged: #Using #axios #send #GET #request
ADD COMMENT
Topic
Name
3+7 =