Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
シンプルな Sinatra アプリがあります。私がする時:
curl localhost:4567/api/shows?limit=1&page=2
これは Sinatra ログにのみ表示されます。
{"limit"=>"1"}
私は何を間違っていますか?
curl の URL を引用符で囲む必要があります。したがって、次のようになります。
curl 'localhost:4567/api/shows?limit=1&page=2'
理由:&前に入力したものをバックグラウンドでコマンドとして実行することを意味するため、機能していませんでした。
&