Cookies

Help Topics

Add cookies and their values to request item

If you would like to add custom cookies and their corresponding values to the request, open request item properties, switch to Cookies tab and enter cookies with their values in the corresponding field. You have to type each cookie on its own line and separate name and value with =.
Example
sessionId=2436809
username=John
Alternatively, you can specify Cookie HTTP request header in Headers tab. You have to specify cookie names and values.
Example
Cookie: sessionId=2436809; username=John
Important
If cookie with the same name is specified both ways, cookie value specified in the Cookie header will be used, cookie value specified in the cookies field will be ignored.

Resend cookies from the previous request with the current request

With this feature you can define whether cookies from the previous request will be included in the request data of the current request. The following options are available:
  • Resend all cookies from the previous request; all cookies from the previous request and their values will be resent when request item will be executed.
  • Do not resend any cookies from the previous request; none of the cookies from the previous request will be resent when request item will be executed.
  • Resend only the following cookies from the previous request; only selected cookies from the previous request and their values will be resent when request item will be executed. To specify only selected cookies simply type cookie names in the text field, one name per line. Do not include cookie values because they will be obtained and added automatically.
Important
If you would like to send cookie to a different domain, sending of the cookie might fail. If the option Rewrite cookie domain with the execution URL host name before sending is turned on, cookie domain will be set to the execution URL host name before sending and won't be refused.
Important
The functionality to automatically resend cookies from the previous request is only applicable if multiple requests are executed in a batch. If only one request is executed, this option is not relevant since there is no previous request data available to obtain cookies from.
For a step-by-step tutorial on resending cookies, see How To Resend Received Cookies.