lib/casclient/client.rb
def submit_data_to_cas(uri, data)
      uri = URI.parse(uri) unless uri.kind_of? URI
      req = Net::HTTP::Post.new(uri.path)
      req.set_form_data(data, ';')
      https = Net::HTTP.new(uri.host, uri.port)
      https.use_ssl = (uri.scheme == 'https')
      https.verify_mode = (@force_ssl_verification ? OpenSSL::SSL::VERIFY_PEER : OpenSSL::SSL::VERIFY_NONE)
      https.start {|conn| conn.request(req) }
    end
# Submits some data to the given URI and returns a Net::HTTPResponse.
Submits some data to the given URI and returns a Net::HTTPResponse.
Submits some data to the given URI and returns a Net :: HTTPResponse .
def submit_data_to_cas(uri, data)
      uri = URI.parse(uri) unless uri.kind_of? URI
      req = Net::HTTP::Post.new(uri.path)
      req.set_form_data(data, ';')
      https = Net::HTTP.new(uri.host, uri.port)
      https.use_ssl = (uri.scheme == 'https')
      https.verify_mode = (@force_ssl_verification ? OpenSSL::SSL::VERIFY_PEER : OpenSSL::SSL::VERIFY_NONE)
      https.start {|conn| conn.request(req) }
    end
def submit_data_to_cas ( uri , data ) uri = URI . parse ( uri ) unless uri . kind_of? URI req = Net :: HTTP :: Post . new ( uri . path ) req . set_form_data ( data , ';' ) https = Net :: HTTP . new ( uri . host , uri . port ) https . use_ssl = ( uri . scheme == 'https' ) https . verify_mode = ( @force_ssl_verification ? OpenSSL :: SSL :: VERIFY_PEER : OpenSSL :: SSL :: VERIFY_NONE ) https . start { | conn | conn . request ( req ) } end
Submits some data to the given URI and returns a Net::HTTPResponse.
Submits some data to the given URI and returns a Net :: HTTPResponse .
uri
data