Skip to content

Instantly share code, notes, and snippets.

Created August 17, 2015 15:06
Show Gist options
  • Save anonymous/ec6713c5db113425ca5c to your computer and use it in GitHub Desktop.
Save anonymous/ec6713c5db113425ca5c to your computer and use it in GitHub Desktop.
require 'mechanize'
require 'open-uri'
agent = Mechanize.new
agent.get("http://www.pouparbem.com/alqapps/ruby.php")
form = agent.page.form_with(:name => 'news') do |f|
f.DATAHORA = "2015-08-26"
f.PRIORIDADE = "1"
f.IDCAMPANHA = "301"
end.submit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment