Module: PageRequester
- Included in:
- AirAsia, Firefly, MalaysiaAirlines, MalindoAir
- Defined in:
- lib/teecket/page_requester.rb
Instance Method Summary collapse
Instance Method Details
#request(uri, req, use_ssl = true) ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/teecket/page_requester.rb', line 2 def request(uri, req, use_ssl = true) http = Net::HTTP.new(uri.host, uri.port) if use_ssl http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE end http.request(req) end |