ruby http request post method
问题 I want take token,but i have a problems. My code: require 'uri' require 'net/http' url = URI.parse('https://ams.iaau.edu.kg/api/authentication/id/password') http = Net::HTTP.new(url.host, url.port) http.use_ssl = (url.scheme == 'https') request = Net::HTTP::Post.new(url.path) response = http.request(request) puts response.message puts response.code I have output like this: Unsupported Media Type 415 API Doc URL /api/authentication/:id/:password Method POST URL Params Required: id=[Integer]