# File lib/rbot/core/utils/httputil.rb, line 629 def post(uri, data, options = {}, &block) # :yields: resp opts = {:method => :post, :body => data, :cache => false}.merge(options) begin resp = get_response(uri, opts, &block) raise 'http error' unless Net::HTTPOK === resp return resp rescue Exception => e error e end return nil end