similar to: timeout error

Displaying 20 results from an estimated 30000 matches similar to: "timeout error"

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
2007 Nov 12
3
Weird error downloading a gzip''ed file
Hi all, I''ve been using mechanize for a while and it rocks. Docs are pretty clear and so far I''ve been able to do it on my own. However, I''m stuck in a weird situation in a script to download my contact list from hotmail. I''ve used Firebug to check all urls, and tested it by hand while logged in via browser. Even in the script everything works well until the
2010 Aug 10
1
Timeout from server <...> during authentication
Hello, I'm trying to create a vpn using TINC with a WindowsServer2003 as client, but I'm receiving the following messaging when running "tincd -n vpn -D -d5" -------------------- ... Trying to connect to server <...> Timeout from server <...> during authentication Could not set up a meta connection to server ... -------------------- I tried the same tinc
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
2010 Jun 03
3
issue submitting a form
Hi. Recently I started rebuilding my old Mechanize script, which I used to automatically log in to a certain site and retrieve files from it. Old version worked great, however, when I did the update it started complaining. Here''s the log of the error: /Users/lukastolyarov/.gem/ruby/1.8/gems/mechanize-1.0.0/lib/mechanize/form/field.rb:30:in `<=>'': undefined method
2009 Apr 09
1
undefined method ''text'' ...
Just trying to run the example ***** require ''rubygems'' require ''mechanize'' a = WWW::Mechanize.new a.get(''http://rubyforge.org/'') do |page| # Click the login link login_page = a.click(page.links.text(/Log In/)) # Submit the login form my_page = login_page.form_with(:action => ''/account/login.php'')
2008 Jul 17
3
Convert data to utf-8
Hello, I''m trying to find a solution to convert everything returned by mechanize to utf-8, no matter if the original page is utf-8 or iso and I really don''t know where to start from... agent = WWW::Mechanize.new { |a| a.log = Logger.new(File::join(RAILS_ROOT, "log/mechanize.log")) } one_page = agent.get("www.google.fr") My first problem is that one_page
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'':
2007 Mar 25
5
mechanize 0.6.6 Released
mechanize version 0.6.6 has been released! http://mechanize.rubyforge.org/ The Mechanize library is used for automating interaction with websites. Mechanize automatically stores and sends cookies, follows redirects, can follow links, and submit forms. Form fields can be populated and submitted. Mechanize also keeps track of the sites that you have visited as a history. Changes: =
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
2011 Jan 18
2
how to get captcha image with mechanize ?
Hey, how to get captcha image with mechanize ? the image is not a static picture, it''s a stream, a text-model. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/mechanize-users/attachments/20110118/bf9a58ff/attachment.html>
2009 Jun 25
2
Bad Form?
Hi, This is my first post, I wanted to ask a quick question about "Bad Form" -- rather, am I doing something with Mechanise I shouldn''t be doing? Here''s the long and short of it - I am using Mechanize with Cucumber and RSpec to test a *ahem* Perl XML web service.. talk about technology soup, but I have it working quite well. I have an example project on GitHub that
2007 Sep 30
3
Problems with Forms
Hi, I am using mechanize for a while now. Works great. But at the moment I have a small problem using it. The problematic file is attached. In that PHP-File you will see a formular, but mechanize doesn''t recognize it. Could somebody check this? Thanks, Bodo -- http://www.tvbrowser.org http://www.wannawork.de -------------- next part -------------- An HTML attachment was scrubbed...
2006 Dec 09
1
manipulate headers?
Hi... Here''s a working Perl script that I want to be able to do in Ruby: use WWW::Mechanize; my $url = "http://host/tt?name=chris"; my $mech = WWW::Mechanize->new(); $mech->add_header( Referer => "http://chrismcmahonsblog.blogspot.com" ); $mech->add_header( Cookie => "messageid=170118; memberid=1007"); $mech->get($url) so the header
2010 Jun 10
2
submit button param is duplicated when a form is submitted a second time
Hello, Below I''ve pasted a simple example to reproduce what I say in the subject. I wonder... Is it a bug? Is there any workaround? Thanks! require ''rubygems'' require ''mechanize'' agent = Mechanize.new page = agent.get(''http://google.com/'') google_form = page.form(''f'') google_form.q = ''ruby
2012 Sep 22
2
Mechanize and Thread-Safety Revisited
This post from Aaron Patterson back in 2009 seems to be pretty definite about how to use Mechanize in a thread-safe way, but I thought I would revisit the question because there are several posts on StackOverflow since then that would seem to contradict it (of course, I trust Aaron''s answer more than random answers on StackOverlfow, but just in case I thought I would confirm it). It is
2012 Apr 30
3
way to get response headers only?
Hello, I''m interested in grabbing the final uri of a given uri after any redirects without retrieving the response body of this final uri. For example, if uri1 redirects to uri2, which in turn redirects to uri3, I''d like to just grab the response header of uri3. I know that I can get the full response (header and body) by doing Mechanize.new.get(uri1).uri, but again,
2006 Oct 17
6
form submit debugging
version 0.62 I''ve got a form that''s giving me trouble (server reports invalid session ID). Unfortunately, the form is submitted using SSL so I can''t use a sniffer to see the differences between the ruby mechanize version and the perl mechanize version that is working. Is there a way to change the form action within mechanize? Or a way to display the request headers?
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 Mar 30
2
keep-alive
Greetings, I''m reporting on what I found after trying to use mechanize on a site like www.tellme.com. With mechanize versions 0.6.5, 0.6.4, 0.6.3, I was able to use mechanize without any problems on www.tellme.com. However, when I upgraded to 0.6.6 or 0.6.7, mechanize simply ground to a halt after a while. I''m not sure where the problem lies, but after looking at the