Ruby Mechanize - Basic Get Failing

Posted by hutch on Stack Overflow See other posts from Stack Overflow or by hutch
Published on 2010-05-16T02:52:10Z Indexed on 2010/05/16 3:00 UTC
Read the original article Hit count: 287

Filed under:
|

a = WWW::Mechanize.new { |agent| agent.user_agent_alias = 'Mac Safari' agent.history.max_size=0 }

page = a.get('http://livingsocial.com/deals?preferred_city=18')

Trying a very basic GET request using mechanize but get a 500, yet when I CURL I have no problems. Is there a problem with including parameters in a get() call? I know I am missing something simple

© Stack Overflow or respective owner

Related posts about ruby

Related posts about mechanize