Use curl instead of File.open of Ruby