< Home

http-url

Function

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.

Format

http-url dest-url [ v1.0 | v1.1 ]

undo http-url

Parameters

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. -

Views

NQA view

Default Level

2: Configuration level

Usage Guidelines

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.

Example

# Set the URL for the HTTP test named admin http to /test.html.

<sysname> system-view
[sysname] nqa test-instance admin http
[sysname-nqa-admin-http] test-type http
[sysname-nqa-admin-http] http-url /test.html
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >