On Tue, Dec 6, 2011 at 11:58 AM, Walter Lee Davis <[email protected]>wrote:

> Can you post some code surrounding this, show the open-uri method call
> you're using?
>
> Walter
>
>
require 'nokogiri'
require 'open-uri'

doc = Nokogiri::HTML(open(url, :http_basic_authentication => [user, pass])
doc.xpath('//select/option').each do |opt|
puts opt.content
end

I grab some info from tha main page of the url (so it works) but when I
enter to its login page with user/pass and try to get some, it seems to get
information from other place (I'm not even sure from where)

Javier

-- 
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.

Reply via email to