私が持っているカールを使用して:
$ curl -v -d "userName=user1&password=passwd1&language=en" http://myhost:23094/api/v2/authToken
...
> POST /api/v2/authToken HTTP/1.1
> User-Agent: curl/7.30.0
> Host: myhost:23094
> Accept: */*
> Content-Length: 39
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 39 out of 39 bytes
< HTTP/1.1 200 OK
このクエリを使用して yandex タンク スクリプトを作成しようとしています。
私のload.ini:
[phantom]
address=my.ip.v4.here
port=8094
rps_schedule=line(1, 10, 1m)
ammo_type=uripost
私の弾薬.txt
133 login
POST /api/v2/authToken HTTP/1.1
User-Agent: tank
Host: somemyhost.com
Content-Length: 39
userName=user1&password=passwd1&language=en
を実行するyandex-tank ammo.txt
と、400 Bad Request エラーが発生します。そのタンクはボディパラメータを使用できないようです。それらを使用するにはどうすればよいですか?私は何を間違っていますか?