Displaying 20 results from an estimated 200 matches similar to: "basic_auth problem since 0.6.9"
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(''https://brewx.qualcomm.com/developer'' )
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
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)
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 :)
2008 Oct 13
10
Shibboleth
Can anyone direct me to a really good tutorial on Shibboleth integration
with Rails, or indeed some sample code? I''ve been tearing my hair out
all day on this one.
Thanks
RobL
--~--~---------~--~----~------------~-------~--~----~
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
2012 Aug 02
2
Handling HTTP 500 errors
Hey guys,
How do you handle HTTP 500 errors with Mechanize?
After researching the web I thought something like this would work:
begin
Mechanize.new.get(url_which_returns_500)
rescue Net::HTTPInternalServerError
puts "Life is awesome. Let''s move on"
end
Anyways, the code in the rescue block will never be executed.
Can you guys help me out?
Kenny
2006 Sep 26
7
Interesting mechanize difficulty
I found an interesting page today that I was trying to script
against. The server returns a 404 with content and the page just
works normally in firefox despite the 404. Mechanize raises an
exception on it though.
I''m working on a test case now.
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
2012 Feb 16
3
Mechanize::ResponseCodeError: 500
> Excuse me if my issue is a little bit application-specific. I need
> Mechanize to submit bunch of data from our server to an online reservation
> system. The url is https://secure.mdausa.org/donate/
> It works in my browser however using mechanize following error appears:
>
> /Library/Ruby/Gems/1.8/gems/mechanize-2.0.1/lib/mechanize/http/agent.rb:241:in
> `fetch'':
2010 Oct 20
2
Mechanize::ResponseCodeError: 500
Also, excuse me if my issue is a little bit application-specific. I need
Mechanize to submit bunch of data from our server to an online reservation
system. The url ishttp://hajres.iranair.com/haj/request.php"
It works in my browser however, using mechanize following error appears:
>> agent.get("http://hajres.iranair.com/haj/request.php")
Net::HTTP::Get: /haj/request.php
2006 Nov 07
5
mechanize: 400 Bad Request
Hello,
when trying to access a certain HTML-frame, I get:
"in `request'': Unhandled response (WWW::Mechanize::ResponseCodeError)"
and the page returns: "400 Bad Request"
* Why?
* How to solve this?
With browser, it works.
In the logs below, I marked 4 lines with "***", where I see possible
differences in the URI. But I don''t know, if this is
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 :
2007 Oct 07
1
How to store a Mechanize object in the database?
Hi,
I am trying to save a Mechanize object in database (using a Rails Model).
But the save operation throws a TypeError
Considering that "agent" is an instance of a Rails Model and "user" is
defined as a "text" type in the Model.
irb(main):039:0> agent.user = WWW::Mechanize.new
#<WWW::Mechanize:0xb71295f0 @follow_meta_refresh=false, @key=nil,
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
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
2010 Mar 12
0
[PATCH] auth_hash module
Hi all.
Here is my first patch for icecast:
auth_hash.diff - this patch created to generate unique URL's that gives
access to listeners.
It also privides GeoIP checking for radiostations, that have some
restrictions to audience from other counties.
Here is sample config:
<mount>
<mount-name>/live</mount-name>
<authentication
2015 May 11
6
Authenticating Apache Against Active Directory
Hello,
Using Nagios on Ubuntu 14.04.1 LTS. I'm attempting to authenticate
users against Samba 4.2.1. When I edit 'apache2.conf' with
<Directory />
Options FollowSymLinks
AllowOverride None
Require all granted
Allow from all
AuthName "AD authentication"
AuthBasicProvider ldap
AuthType Basic