mirror of
https://github.com/Kong/insomnia.git
synced 2026-04-22 15:18:27 -04:00
18 lines
338 B
Ruby
Executable File
18 lines
338 B
Ruby
Executable File
require 'uri'
|
|
require 'net/http'
|
|
|
|
class Net::HTTP::Propfind < Net::HTTPRequest
|
|
METHOD = 'PROPFIND'
|
|
REQUEST_HAS_BODY = 'false'
|
|
RESPONSE_HAS_BODY = true
|
|
end
|
|
|
|
url = URI("http://mockbin.com/har")
|
|
|
|
http = Net::HTTP.new(url.host, url.port)
|
|
|
|
request = Net::HTTP::Propfind.new(url)
|
|
|
|
response = http.request(request)
|
|
puts response.read_body
|