Displaying 13 results from an estimated 13 matches for "basic_auth".
2007 Oct 05
3
basic_auth problem since 0.6.9
I have a site that I don''t think "returns" a basic_auth request, but is
able to use basic_auth.
In the past on 0.6.8, I could use the following code:
require ''rubygems''
# gem ''mechanize'', ''=0.6.8''
require ''mechanize''
agent = WWW::Mechanize.new
agent.basic_auth("username&quo...
2007 Jul 12
3
Basic_auth questions
How do you make get the page when using basic_auth? Below is code, I am
getting a 401 error. I am not sure if the basic _auth comes before the
agent.get. I will appreciate any help.
require ''mechanize''
require ''logger''
agent = WWW::Mechanize.new {|a| a.log = Logger.new(STDERR) }
page = agent.get(''h...
2007 Jul 02
6
Basic auth bug in 0.6.9
I haven''t spent the time to get a proper test case for this yet, but
there appears to be a bug in the basic_auth code for mechanize
0.6.9. I''ve attached a CSV (from Charles) that illustrates the problem.
Basically when running with basic_auth, there''s a failed request
that''s followed up by a successful request. That last POST is a
agent.submit(form) which gets repeated as a...
2007 Aug 06
3
authentication question
Hi all
Is there another gem to "manage" logins beyound Equipment (basic
login/security) to use under Camping?
I have already readed the basic_auth.rb and security.rb but is there
some app I can see it working as an example?!
Thanks in advance
Francisco
PS: keep the great job with Camping :)
2010 Jul 08
4
testing authentication with basic_auth
hi, I''ve got an api which is using
authenticate_or_request_with_http_basic
What are you guys using to test this? I''m using rspec, and before I
was using rspec-rails, I was using authorize from Rack::Test to do the
authentication. However, authorize clearly doesn''t work when using
rspec-rails, so I''m wondering what everyone else is doing?
--
You received this
2009 Apr 22
5
Connection reset by peer (Errno::ECONNRESET)
Hi,
I''m a new bee to Ruby and I''m trying to parse the html content from a
website using net/http. All urls work fine except for
"https://www.google.com/accounts/AuthSubRequest?scope=http%3A%2%2Fwww.google.com%2Fcalendar%2Ffeeds%2F&session=0&secure=0&next=http%3A%2F%2Fwww.google.com".
When I try to access this url I get an error like this :
2006 Jul 18
0
del.icio.us links in the layout - HELP
I''m trying to get my del.icio.us links to appear in the layout, so it''s
throughout the entire application. Here''s the code I have:
#controller - application.rb?
def get_authenticated(path, http)
request = Net::HTTP::Get.new(path)
request.basic_auth ''user'', ''pass''
response = http.request(request)
response.value
response.body
end
@links = Array.new
@descriptions = Array.new
@times = Array.new
@i = 0
http = Net::HTTP.new(''api.del.icio.us'', 443)
http.use_ssl = t...
2009 Sep 02
0
Parse private rss feeds
hello
I would like to know how to get the content of an atom page, which is
in the same application ,
i tried to use NET::HTTP but i dont know how to decrypt user password to
login with eq.basic_auth
thnx
--
Posted via http://www.ruby-forum.com/.
2006 Jan 30
3
webservice consumption over SSL
Hi, as long as nobody answered to my previous question, i''ll try to
write in another way.
I have:
webservice WSDL link (https://something?WSDL, that''s .net webservice)
pem file (certificate, needed to authentificate for gettting data)
i need :
to consume that webservice without describing API''s for each method (i
mean use WSL to construct needed structures or objects).
2007 Mar 25
1
Automatic HTTP Basic Authentication In Ruby on Rails
Hi,
i need to access a url
www.sometesturl3456.com/index.php
It prompts HTTP Authentication window asking username and password. I
have do automatic HTTP Basic authentication without manual entry of
username and password, as i am reading the content of page in ruby in
rails using:
response = open("www.sometesturl3456.com/index.php").read
Please help me to know how this can be done.
2006 Jul 18
9
Simple Array Issue - HELP
Ok, I am interfacing with the del.icio.us API and I want to collect the
links in an @instance variable for my view. But I''m having trouble with
that part. Here''s what I have:
def get_authenticated(path, http)
request = Net::HTTP::Get.new(path)
request.basic_auth ''user'', ''pass''
response = http.request(request)
response.value
response.body
end
@links = Array.new
http = Net::HTTP.new(''api.del.icio.us'', 443)
http.use_ssl = true
http.start do |http|
xml = get_authenticated(''/v1/posts/recent?count=1...
2012 Oct 12
5
https report processor setup
hi,
I''m having difficulty setting up the built-in https report processor and
I''m hoping somewhere here can provide some insight.
I''ve got a puppet agent and master set up and working correctly, at least
as far as I can tell. What I need to do next is get information about any
configuration changes made by the master on the agent and send it to an
external
2007 Feb 07
15
https with certificates
I poked around the web a little and didn''t run across how to use https
when it asks for certificate validation.
I''m trying to connect to devices that don''t have valid certificates,
and in this case, I don''t care if they are or not.
So when I use my browser to ge to the site, firefox asks me to allow
the certificate, then one other question, then I get the