edición general
  1. #!/usr/bin/ruby
    require 'net/http'
    require 'iconv'
    require 'cgi'
    m,u,k,s,p=ARGV
    puts "Error!" if((Net::HTTP::Proxy(s,p).get('meneame.net', '/api/newpost.php?user='+u+'&key='+k+'&text='+CGI.escapeHTML(CGI.escape(Iconv::iconv("UTF-8",`locale charmap`.chomp,m).to_s))).to_s.index(/^OK/))!=0)

menéame