以下の内容はhttps://hogem.hatenablog.com/entry/20120518/1337350573より取得しました。


ab でPOSTのベンチマーク

  • -p postfile postデータを書いたファイルをで指定
  • -T content-type "application/x-www-form-urlencoded" を指定

postfileはURLエンコードしておく必要あり。複雑なPOSTデータの場合はngrep/tcpdumpしておきながら、一度ブラウザでPOSTしたものをコピペしてそのまま使うなどをすると楽ですね。

# POST data: user=hoge@example.com&pass=hogehoge
$ echo -n "user=hoge%40example.com&pass=hogehoge" > postfile
$ ab -c 10 -n 100 -p postfilie -T "application/x-www-form-urlencoded" http://app.example.com/path/to/post



以上の内容はhttps://hogem.hatenablog.com/entry/20120518/1337350573より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14