yandex / yandex-tank

Load and performance benchmark tool
Other
2.46k stars 278 forks source link

Headers from load.ini are not added to the Request-style ammo #107

Closed citizen-stig closed 10 years ago

citizen-stig commented 10 years ago

I've deleted "Host" header from my reqeust-style ammo, to be able test it on different hosts. I've put host header in load.ini file: headers=[Host: ya.ru]

But it seems that yandex-tank doesn't add this header. I've dumped traffic with wireshark, and this header is missed from HTTP requests.

Here is sample of my ammo:

73 good_tag
GET /test.php?param=value HTTP/1.1
User-Agent: yandex-tank/1.1.1

...
doctornkz commented 10 years ago

I afraid it's not possible to combine request-style with "headers=" customization. Request-style means known lenght of chunk. But with "headers=" lenght will be incorrect. Other words, request-style ammo is "all-in-one" case and can't be modified.

citizen-stig commented 10 years ago

Oh, I get it. Thank you!