João Henrique Machado Silva
2012-Feb-16 22:55 UTC
[Mechanize-users] 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'': 500 => Net::HTTPInternalServerError (Mechanize::ResponseCodeError) > from /Library/Ruby/Gems/1.8/gems/mechanize-2.0.1/lib/mechanize.rb:628:in > `post_form'' > from /Library/Ruby/Gems/1.8/gems/mechanize-2.0.1/lib/mechanize.rb:520:in > `submit'' > from > /Library/Ruby/Gems/1.8/gems/mechanize-2.0.1/lib/mechanize/form.rb:167:in > `submit'' > > Can anybody help me please? > > Thanx, > > Jo?o Henrique Machado Silva > Mobilidade e Tecnologia > www.nurt.com.br <http://www.mindbiz.com.br> > +55 31 9635 8003 > Skype joaoh82 > MSN joaoh82 at gmail.com > TWITTER @joaoh82 > BLOG http://mobiledevelopmentblog.blogspot.com/ > BLOG http://nacozinhacomlurdinha.blogspot.com/ > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/mechanize-users/attachments/20120216/b560cccf/attachment.html>
On Feb 16, 2012, at 2:55 PM, Jo?o Henrique Machado Silva wrote:> 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'': 500 => Net::HTTPInternalServerError (Mechanize::ResponseCodeError) > from /Library/Ruby/Gems/1.8/gems/mechanize-2.0.1/lib/mechanize.rb:628:in `post_form'' > from /Library/Ruby/Gems/1.8/gems/mechanize-2.0.1/lib/mechanize.rb:520:in `submit'' > from /Library/Ruby/Gems/1.8/gems/mechanize-2.0.1/lib/mechanize/form.rb:167:in `submit'' > > Can anybody help me please?You''ll need to post a log of the behavior and a complete backtrace. Also, did you try with the latest mechanize?
Do u set to use ssl??? Att. Thiago Imolesi Em 17/02/2012, ?s 23:20, Eric Hodel <drbrain at segment7.net> escreveu:> On Feb 16, 2012, at 2:55 PM, Jo?o Henrique Machado Silva wrote: >> 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'': 500 => Net::HTTPInternalServerError (Mechanize::ResponseCodeError) >> from /Library/Ruby/Gems/1.8/gems/mechanize-2.0.1/lib/mechanize.rb:628:in `post_form'' >> from /Library/Ruby/Gems/1.8/gems/mechanize-2.0.1/lib/mechanize.rb:520:in `submit'' >> from /Library/Ruby/Gems/1.8/gems/mechanize-2.0.1/lib/mechanize/form.rb:167:in `submit'' >> >> Can anybody help me please? > > You''ll need to post a log of the behavior and a complete backtrace. > > Also, did you try with the latest mechanize? > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users
On Feb 17, 2012, at 17:59, Thiago Imolesi <trimolesi at gmail.com> wrote:> Do u set to use ssl???Mechanize automatically uses SSL, there''s no need to set anything. Without working SSL a 500 could not be returned.