This topic describes the options specific to the HTTP protocol (the protocol version, User-Agent header, request and response compression, and so on).
To configure the HTTP options:
Click
on the ReadyAPI toolbar.
Select HTTP in the left part of the ReadyAPI Preferences window and configure the needed options.
The available options and their descriptions are in the table below.
Option | Description |
---|---|
HTTP version | Select the HTTP version. |
User-Agent header | Sets the HTTP User-Agent header. If no header is specified, the default |
Request compression | Select the request compression type. This property affects all the requests you send. You cannot compress individual requests. To use different compression settings, run your tests from the command line and specify different setting files for different tests by using the There are three formats of compressed files: |
Response compression | Indicates whether compressed responses coming from hosts are accepted. |
Disable response decompression | If selected, compressed responses are not decompressed. |
Close connections after request | If selected, overrides HTTP Keep-Alive settings by requesting to close the HTTP connection after each message exchange. This will degrade the performance of your test, but you may get more realistic values during load testing. |
Chunking threshold | Using content chunking for requests larger than thresholds. Leave the edit box blank to disable it. |
Authenticate preemptively | If selected, ReadyAPI sends authorization headers with each request. NoteThis is a potential security hazard, but the performance will improve since only one request is required for authenticated endpoints instead of two. |
Expect continue | If selected, the Expect-Continue header is added to outgoing requests. For more information on this feature, see rfc 2616. |
Pre-encoded endpoints | If selected, URL encoding of endpoints is disabled. Select the option if your endpoint URLs are already URL-encoded – for example, they contain |
Normalize forward slashes | Replaces two forward slashes ( |
Bind address | The local address to bind to when sending requests. It can be overridden in a request by using the corresponding request property and in the operating system by using the |
Include request in time taken | If selected, ReadyAPI includes the time it took to write the request in the time spent on message exchange. |
Include response in the time taken | If selected, ReadyAPI includes the time it took to read the response body in the time spent on message exchange. |
Socket timeout (ms) | The socket timeout for HTTP requests, in milliseconds. No value or Default value: |
Max response size | The maximum number of bytes to read from a response. No value or |
Max connections per host | The maximum number of simultaneous connections to a specific host. Increase this value if you run load tests with more than 500 threads on a particular host. |
Max total connections | The total maximum number of connections. Increase this value if you run load tests with more than 2000 threads. |
Leave virtual service | If selected, ReadyAPI leaves the virtual service engine running even if all virtual APIs have stopped. This reduces the startup time for new virtual APIs. NoteIf you try to call a stopped virtual API with this option enabled, error 404 will occur instead of the connection failure. |
Default authentication profile | Specifies whether new test steps use authorization specified for the project, authorization specified for the service, or no authorization. |