From: Ammar Ali Date: 2010-11-12T09:55:13+09:00 Subject: Re: Parsing XML with Ruby On Fri, Nov 12, 2010 at 2:12 AM, jackster the jackle wrote: > I need to hit an https link and pass a username and password in order to > pull down some records in xml format. I was thinking that the easiest > way to do this is to shell out to curl and then parse my xml provided > that I could pass the username/password in the url. > > Can anyone recommend an easy way to accomplish this? The ruby way of doing this would be to use the Net::HTTP from the standard library. It does https too. The docs are at: http://ruby-doc.org/stdlib/libdoc/net/http/rdoc/index.html As for parsing XML, there are a few options, but Nokogiri is probably the easiest to learn and deal with. Easily googlable, and there are a few blog posts with samples. HTH, and have fun! Ammar