The http-url command configures a resource relative URL and version information for an HTTP test instance.
The undo http-url command restores the default configuration.
| Parameter | Description | Value |
|---|---|---|
| dest-url | Specifies a resource relative URL. | The value is a case-sensitive character string. The length of a name without spaces ranges from 1 to 230 characters. The length of a name with spaces ranges from 3 to 232 characters. If a name contains spaces, the name must be enclosed with quotation marks (for example, "url for test"). |
| v1.0 | Specifies the HTTP version to v1.0. | - |
| v1.1 | Specifies the HTTP version to v1.1. | - |
By default, if the resource relative URL is not configured, you can request for access the root directory of the HTTP server.
By default, the HTTP version is v1.0.
Prerequisites
Before using the http-url command, run the test-type command to specify the type of the test instance as http.
Precautions
You cannot change the configured URL of the currently performed HTTP test.
When running the http-url command, you need to specify a domain name or a server's IP address; otherwise, the test instance fails.