52
operation (HTTP/HTTPS operation view)
Use operation to specify the operation type for the HTTP or HTTPS operation.
Use undo operation to restore the default.
Syntax
operation { get | post | raw }
undo operation
Default
The HTTP or HTTPS operation type is get.
Views
HTTP operation view
HTTP/HTTPS template view
Predefined user roles
network-admin
Parameters
get: Gets data from the HTTP or HTTPS server.
post: Transfers data to the HTTP or HTTPS server.
raw: Sends the RAW request to the HTTP or HTTPS server.
Usage guidelines
The HTTP and HTTPS operations use HTTP and HTTPS requests as probe packets.
For the get or post operation, the content in the request is obtained from the URL specified by the url
command.
For the raw operation, the content in the request is configured in raw request view. You can use the
raw-request command to enter the raw request view.
Examples
# Set the operation type to raw for the HTTP operation.
<Sysname> system-view
[Sysname] nqa entry admin test
[Sysname-nqa-admin-test] type http
[Sysname-nqa-admin-test-http] operation raw
# In HTTP template view, set the operation type to raw for the HTTP operation.
<Sysname> system-view
[Sysname] nqa template http httptplt
[Sysname-nqatplt-http-httptplt] operation raw
Related commands
password
raw-request
username
out interface
Use out interface to specify the output interface for probe packets.