change main

master
Kanezoh 2021-05-03 13:29:06 +09:00
parent 3f39c9d9bd
commit 224a4f9456
1 changed files with 2 additions and 1 deletions

View File

@ -4,4 +4,5 @@ agent = Mechanize.new
agent.request_headers = HTTP::Headers{"Foo" => "Bar"} agent.request_headers = HTTP::Headers{"Foo" => "Bar"}
params = {"hoge" => "hoge"} params = {"hoge" => "hoge"}
page = agent.get("http://example.com/", params: params) page = agent.get("http://example.com/", params: params)
puts page puts page.code
puts page.body