From: David Thole Date: 2010-05-20T03:05:29+09:00 Subject: Re: VISIT A URL PROGRAMATICALLY I'm not sure specifically what you're trying to do. If you're trying to interact with a web sit, maybe Mechanize would be a better option of something to use? http://mechanize.rubyforge.org/mechanize/ -David kevid writes: > hi all, > > i have the code below; > > require 'rexml/document' > require 'open-uri' > open('http://api.evdb.com/rest/users/login?app_key=ct2hJqTCg4XLCP5h') > { |f| > $res = REXML::Document.new(f.read) > } > > the xml data that is read is; > > > > > 6984053721 > Please supply a user authentication response using the > nonce provided. > > > QUESTIONS > > 1. how do i get the value of nonce (i.e. 6984053721 ) > > 2. is there another way of visiting the url "http://api.evdb.com/rest/ > users/login?app_key=ct2hJqTCg4XLCP5h" > without using open-uri as in above > > > thoughts?? -- David http://www.thedarktrumpet.com/