I''m trying to use ActiveResource in a ruby script to consume a web
service that requires simple HTTP authentication. From the docs, this
seems like it should be trivial:
require ''rubygems''
require ''activeresource'' #I''m on 2.1.0
class List < ActiveResource::Base
self.logger = Logger.new STDOUT
self.site =
''http://myuser:mypass-t1rxLZ7CIXjQT0dZR+AlfA@public.gmane.org''
end
But when I try to use the model, it throws back a 401--even though the
same resource works just fine when invoked from a web browser. When I
looked at the outbound traffic using WireShark, the Authorization
header isn''t even there.
Any hints/suggestions?
Thanks,
Ben
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---