diff --git a/form.html b/form.html
new file mode 100644
index 0000000..8ff5dcf
--- /dev/null
+++ b/form.html
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/webrick.rb b/webrick.rb
index b2d51cc..adb13d2 100644
--- a/webrick.rb
+++ b/webrick.rb
@@ -21,4 +21,28 @@
res.body = body
end
+server.mount_proc("/form_get") do |req, res|
+ # レスポンス内容を出力
+ body = "\n"
+ body += "クエリパラメータは#{req.query}です
\n"
+ body += "こんにちは#{req.query['username']}さん。"
+ body += "あなたの年齢は#{req.query['age']}ですね"
+ body += "\n"
+ res.status = 200
+ res['Content-Type'] = 'text/html'
+ res.body = body
+end
+
+server.mount_proc("/form_post") do |req, res|
+ # レスポンス内容を出力
+ body = "\n"
+ body += "フォームデータは#{req.query}です
\n"
+ body += "こんにちは#{req.query['username']}さん。"
+ body += "あなたの年齢は#{req.query['age']}ですね"
+ body += "\n"
+ res.status = 200
+ res['Content-Type'] = 'text/html'
+ res.body = body
+end
+
server.start