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:[EMAIL PROTECTED]'
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 [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