talmobi/tor-request

pipe stream

knoxcard opened this issue · 1 comments

How do we do this with tor-request?

request('http://google.com/doodle.png').pipe(fs.createWriteStream('doodle.png'))

Solved it...

      request = require('request')
      request.proxy = 'http://127.0.0.1:9050'
      request('http://google.com/doodle.png').pipe(fs.createWriteStream('doodle.png'))