On Thu, Oct 13, 2011 at 05:14, merbivore <[email protected]> wrote:
> I have a link and am getting the csv file when i do in the terminal. ... > " wget --user=test --password=test > https://demo.service-now.com/incident_list.do\?CSV" If I grok in fullness, what you are asking is essentially "how do I open a file by URL, in Ruby?" Googling "ruby open url" (sans quotes) yields some promising hits. Summary: check out net::http, and open-uri. I didn't read it in enough detail to see how it handles authentication (if at all), but at least it's a starting point. Maybe Googling "ruby open authenticated url" might be useful? I'll leave that as an exercise for the reader. ;-) -Dave -- LOOKING FOR WORK, preferably Ruby on Rails, in NoVa/DC; see main web site. Main Web Site: davearonson.com Programming Blog: codosaur.us Excellence Blog: dare2xl.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

