< Home

http-url

Function

The http-url command configures the uniform resource locator (URL) and version information for an HTTP test instance.

The undo http-url command deletes the configured URL and version information.

By default, no URL or version information is configured for an HTTP test instance.

Format

http-url deststring [ verstring ]

undo http-url

Parameters

Parameter Description Value

deststring

Specifies the name of the web page used for an HTTP test.

The value is a string of 1 to 230 case-insensitive characters without spaces.

NOTE:
When quotation marks are used around the string, spaces are allowed in the string.

verstring

Specifies the HTTP version.

The total length of verstring should be equal to or shorter than 7 characters. It can be set to v1.0 or 1.1. The default HTTP version is v1.0.

Views

NQA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

HTTP1.0 and HTTP1.1 are supported in this test instance.

Precautions

The http-url command applies only to HTTP test instances. You cannot change the URL of a running HTTP test instance.

When running the http-url command, you need to specify a domain name or a server's IP address; otherwise, the test instance fails.

Example

# Set the URL of HTTP test instance user test to http://www.***.com.

<HUAWEI> system-view
[HUAWEI] nqa test-instance user test
[HUAWEI-nqa-user-test] test-type http
[HUAWEI-nqa-user-test] http-url http://www.***.com
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >