How do I download and save a binary file over HTTP using Ruby?
The URL is http://somedomain.net/flv/sample/sample.flv.
I am on the Windows platform and I would prefer not to run any external program.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The simplest way is the platform-specific solution:
Probably you are searching for:
Edit: Changed. Thank You.
Edit2: The solution which saves part of a file while downloading: