>>>>> "O" == Ot Ratsaphong <Ot.Ratsaphong / tpg.com.au> writes: O> http://fs.tradingroom.com.au/tpl/investments/tr_cur_price_hist_csv.isam?code O> =CVS O> http.post( '/tpl/investments/tr_cur_price_hist_csv.isam', O> 'query=subject&code=CVS' ) do |str| You don't use the same URL, just write http.post( '/tpl/investments/tr_cur_price_hist_csv.isam', 'code=CVS') O> Unfortunately this program only returns the first line of the file, which is O> only the headings. Could show me how I can get the rest of the file? This is because you have added 'query=subject' to your URL Guy Decoux