Skip to content

Instantly share code, notes, and snippets.

@maxpospischil
Created February 3, 2016 22:13
Show Gist options
  • Save maxpospischil/b908796f16f5004907ad to your computer and use it in GitHub Desktop.
Save maxpospischil/b908796f16f5004907ad to your computer and use it in GitHub Desktop.
download gist
require 'httpi'
url = "https://localhost:9003/libraries.json?token=1"
request = HTTPI::Request.new("#{url}?token=valid_token")
request.headers["Content-Type"] = 'application/json'
request.headers["From-Bluefin"] = 'true'
request.auth.ssl.verify_mode = :none
http_method = :get
HTTPI.request(http_method, request, adapter = nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment