Skip to content

Instantly share code, notes, and snippets.

@brettchalupa
Created October 11, 2012 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brettchalupa/3875786 to your computer and use it in GitHub Desktop.
Save brettchalupa/3875786 to your computer and use it in GitHub Desktop.
Write an HTTParty GET request to a file.
File.open( "/tmp/my_movie.mov", "w") do |movie|
movie << HTTParty.get( "http://example.com/movie.mov" )
end
@j-nguyen
Copy link

j-nguyen commented Aug 1, 2019

yeet.

thank you ♥️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment