Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----------------------------------------------------------------------------------------------------------------
- uri = URI.parse("https://mydomain.com/attachments")
- request = Net::HTTP::Post.new(uri)
- req_headers
- request["Authorization"] = req_headers
- req_options = {
- use_ssl: uri.scheme == "https",
- }
- response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http|
- http.request(request)
- end
- byebug
Advertisement
Add Comment
Please, Sign In to add comment