beautypg.com

Configuring the http template – H3C Technologies H3C MSR 5600 User Manual

Page 44

background image

31

Step Command

Remarks

6.

(Optional.) Configure the
expected data.

expect data expression [ offset
number ]

By default, no expected data is
configured.
This command takes effect only
when you configure the data-fill

command.

Configuring the HTTP template

A feature that uses the HTTP template creates and starts the HTTP operation to measure the time the NQA

client uses to obtain data from an HTTP server.
In HTTP template view, you can configure the expected data. The expected data is checked only when

expected data is configured and the HTTP response contains the Content-Length field in the HTTP header.
The Content-Length field indicates the packet body length, and it does not include the header length.

HTTP packet with this field indicates the packet data does not include the multipart type and the packet

body is a data type.
If you do not specify the expected data, the HTTP operation only tests whether the client can establish a
TCP connection to the server.
Configure the HTTP server before you perform the HTTP operation.
To configure the HTTP template:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Create an HTTP template and
enter its view.

nqa template http name N/A

3.

Specify the URL of the
destination HTTP server.

url url

Enter the URL in the format of
http://host/resource.

4.

Specify an HTTP login username. username username

By default, no HTTP login username is
specified.

5.

Specify an HTTP login password. password { cipher | simple }

password

By default, no HTTP login password is
specified.

6.

Specify the HTTP operation type. operation { get | post | raw }

By default, the HTTP operation type is
get, which means obtaining data from

the HTTP server.
In the HTTP raw operation, use the

raw-request command to specify the
content of the GET request to be sent to

the HTTP server.

7.

(Optional.) Enter raw request

view.

raw-request

This step is required for the raw
operation.
Every time you enter the raw request
view, the previously configured

content of the GET request is removed.

This manual is related to the following products: