great. it works for simple string -
body: 'I am an attachment'
now I want to stream a file.
I am trying to pipe the readable stream of my file into the put request:
file =
fs.createReadStream('test-file').pipe(request.put('http://api.my-server.com:3000/test.foo/test-7));
and it looks fine (nothing crashed) but i don't see the file when i curl my
api.
i added the 'data' and 'end' events to the file, and i see the chunks, so
it's sending it.
is there a way to view the server's response? right now i don't know if the
put request was successful.
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en