pipe stream
knoxcard opened this issue · 1 comments
knoxcard commented
How do we do this with tor-request?
request('http://google.com/doodle.png').pipe(fs.createWriteStream('doodle.png'))
knoxcard commented
Solved it...
request = require('request')
request.proxy = 'http://127.0.0.1:9050'
request('http://google.com/doodle.png').pipe(fs.createWriteStream('doodle.png'))