Have you tried to use EM's http client? http://eventmachine.rubyforge.org/EventMachine/Protocols/HttpClient2.html
And/or https://github.com/igrigorik/em-http-request It should be pretty straight forward but careful not to block the run loop while writing to S3. -m Sent from my iPhone On Mar 30, 2012, at 0:23, andrewashbacher <[email protected]> wrote: > Hi, > > I'm trying to pipe data from HTTP GET to HTTP POST or PUT using > EventMachine. I created a question on SO (http://stackoverflow.com/ > questions/9933697/pipe-data-from-http-get-to-http-post-put). My goal > is to take a source URL (HTTP) and transfer it directly to S3 (via > HTTP PUT) without touching the disk. > > Have any of you done something like this before? And/or have any > hints on what I should Google for? Any help is appreciated. > > Cheers, > Andrew > > -- > SD Ruby mailing list > [email protected] > http://groups.google.com/group/sdruby -- SD Ruby mailing list [email protected] http://groups.google.com/group/sdruby
