エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
How to read POST data in rack request
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
How to read POST data in rack request
When I run the curl command curl -v -H "Content-type: application/json" -X POST -d '{"name":"abc"... When I run the curl command curl -v -H "Content-type: application/json" -X POST -d '{"name":"abc", "id":"12", "subject":"my subject"}' http://localhost:9292 to send a POST request with data to my Rack application, my code prints out {}. That is coming from puts req.POST() in the code below. Why does it print out {} instead of the POST data? And how do I correctly access the POST data in my Rack ap

