How can I set cookies in Load Impact?

While a client runs its load script, cookies set by the server (via the “Set-Cookie:” header) will be reused by the client in subsequent requests. This happens all up until the load script execution ends – then all cookies will be deleted before the next execution of the script. However, cookies, or more specifically the “Cookie:” header, is currently the only header that is set automatically by the client. Other headers, such as the “If-Modified-Since:” header will not be set unless the user specifies it in the load script, and this is why caching is not emulated automatically.

It is also possible to further set other cookies manually. You can do this by adding this to your script:

    {"GET", "", headers={["Cookie"]="name=value"}}

Feedback and Knowledge Base