mirror of
https://github.com/Kong/insomnia.git
synced 2026-04-22 23:28:33 -04:00
12 lines
239 B
Ruby
Executable File
12 lines
239 B
Ruby
Executable File
require 'uri'
|
|
require 'net/http'
|
|
|
|
url = URI("http://mockbin.com/har?foo=bar&foo=baz&baz=abc&key=value")
|
|
|
|
http = Net::HTTP.new(url.host, url.port)
|
|
|
|
request = Net::HTTP::Get.new(url)
|
|
|
|
response = http.request(request)
|
|
puts response.read_body
|