Automatically generated values can be used in several areas of a request.
Automatic Header Values
Automatic header values are used for headers that require calculation, and can only be determined after the message body is created.
To use an automatic header in a dynamic test, create the header value with the Request.Headers.Add() method, if it doesn't already exist, using "(automatic)" as the value of the header.
HTTP Headers that support automatic values include:
- Host: the value is based on the server the Connection object is associated with.
- Accept-Language: determined from the test controller's operating system settings.
- Content-Length: the request's body size is calculated and added just before sending the request to the server.
- Cookie: determined by the cookies for the current user, and the server and URL path of the request.
Automatically Adding User Names and Passwords
The name and password of the current user are available from the User.Name and User.Password properties of the current user.
See Also
Request.Headers property |
HTTP Header Fields
Reference