curlコマンドでPOST -dでPOSTのBODYを指定。 なんとなくUserAgentにiPhoneやgzip要求もつけてみる。 curl -H 'Content-Type:application/json' -H 'User-Agent:iPhone' -H 'Accept-Encoding:gzip,deflate' -d "{"key":"val","key2":",val2"}" http://~~~~~~~~~~ #!/bin/sh # Usage: xxxxxx.sh url times json # # Arguments: # url # times # json it MUST be surrounded single-quartations # # Example # sh xxxxxx.sh http://localhost:8080/webapi/user/XX