wget や ab(apache bench) で Cookie を指定し POST する方法

Content-Type は環境に応じて変えてください。

wget

% wget --post-data 'hoge=hige&hage=huga' \
--header 'Cookie: SESSIONID=abc; hige=pon;' \
--header 'Content-Type:application/json' http://example.com/hige.json

ab

% ab -n 2 -c 2 -p ~/postdata.file -T 'application/json'\
 -C 'SESSIONID=abc'\
 -C 'hige=pon' http://example.com/hige.json