Download full document:

nshttpparam

Configuration for HTTP parameter resource.

Properties

(click to see Operations)

NameData TypePermissionsDescription
dropinvalreqs<String>Read-writeDrop invalid HTTP requests or responses.
Default value: OFF
Possible values = ON, OFF
markhttp09inval<String>Read-writeMark HTTP/0.9 requests as invalid.
Default value: OFF
Possible values = ON, OFF
markconnreqinval<String>Read-writeMark CONNECT requests as invalid.
Default value: OFF
Possible values = ON, OFF
insnssrvrhdr<String>Read-writeEnable or disable Citrix ADC server header insertion for Citrix ADC generated HTTP responses.
Default value: OFF
Possible values = ON, OFF
nssrvrhdr<String>Read-writeThe server header value to be inserted. If no explicit header is specified then NSBUILD.RELEASE is used as default server header.
Minimum length = 1
logerrresp<String>Read-writeServer header value to be inserted.
Default value: ON
Possible values = ON, OFF
conmultiplex<String>Read-writeReuse server connections for requests from more than one client connections.
Default value: ENABLED
Possible values = ENABLED, DISABLED
maxreusepool<Double>Read-writeMaximum limit on the number of connections, from the Citrix ADC to a particular server that are kept in the reuse pool. This setting is helpful for optimal memory utilization and for reducing the idle connections to the server just after the peak time.
Default value: 0
Minimum value = 0
Maximum value = 360000
http2serverside<String>Read-writeEnable/Disable HTTP/2 on server side.
Default value: OFF
Possible values = ON, OFF
builtin<String[]>Read-onlyFlag to determine if the http param is built-in or not.
Possible values = MODIFIABLE, DELETABLE, IMMUTABLE, PARTITION_ALL

Operations

(click to see Properties)

UPDATE| UNSET| GET (ALL)

Some options that you can use for each operations:

  • Getting warnings in response:NITRO allows you to get warnings in an operation by specifying the "warning" query parameter as "yes". For example, to get warnings while connecting to the NetScaler appliance, the URL is as follows:

    http://<netscaler-ip-address>/nitro/v1/config/login?warning=yes

    If any, the warnings are displayed in the response payload with the HTTP code "209 X-NITRO-WARNING".

  • Authenticated access for individual NITRO operations:NITRO allows you to logon to the NetScaler appliance to perform individual operations. You can use this option instead of creating a NITRO session (using the login object) and then using that session to perform all operations,

    To do this, you must specify the username and password in the request header of the NITRO request as follows:

    X-NITRO-USER:<username>

    X-NITRO-PASS:<password>

    Note:In such cases, make sure that the request header DOES not include the following:

    Cookie:NITRO_AUTH_TOKEN=<tokenvalue>

Note:

Mandatory parameters are marked in redand placeholder content is marked in <green>.

update

URL:http://<netscaler-ip-address>/nitro/v1/config/nshttpparam

HTTP Method:PUT

Request Headers:

Cookie:NITRO_AUTH_TOKEN=<tokenvalue> Content-Type:application/json

Request Payload:

{"nshttpparam":{
"dropinvalreqs":<String_value>,
"markhttp09inval":<String_value>,
"markconnreqinval":<String_value>,
"insnssrvrhdr":<String_value>,
"nssrvrhdr":<String_value>,
"logerrresp":<String_value>,
"conmultiplex":<String_value>,
"maxreusepool":<Double_value>,
"http2serverside":<String_value>
}}

Response:

HTTP Status Code on Success: 200 OK HTTP Status Code on Failure: 4xx <string> (for general HTTP errors) or 5xx <string> (for NetScaler-specific errors). The response payload provides details of the error

unset

URL:http://<netscaler-ip-address>/nitro/v1/config/nshttpparam?action=unset

HTTP Method:POST

Request Headers:

Cookie:NITRO_AUTH_TOKEN=<tokenvalue> Content-Type:application/json

Request Payload:

{"nshttpparam":{
"dropinvalreqs":true,
"markhttp09inval":true,
"markconnreqinval":true,
"insnssrvrhdr":true,
"nssrvrhdr":true,
"logerrresp":true,
"conmultiplex":true,
"maxreusepool":true,
"http2serverside":true
}}

Response:

HTTP Status Code on Success: 200 OK HTTP Status Code on Failure: 4xx <string> (for general HTTP errors) or 5xx <string> (for NetScaler-specific errors). The response payload provides details of the error

get (all)

URL:http://<netscaler-ip-address>/nitro/v1/config/nshttpparam

HTTP Method:GET

Request Headers:

Cookie:NITRO_AUTH_TOKEN=<tokenvalue> Accept:application/json

Response:

HTTP Status Code on Success: 200 OK HTTP Status Code on Failure: 4xx <string> (for general HTTP errors) or 5xx <string> (for NetScaler-specific errors). The response payload provides details of the errorResponse Headers:

Content-Type:application/json

Response Payload:

{ "nshttpparam": [ {
"dropinvalreqs":<String_value>,
"markhttp09inval":<String_value>,
"markconnreqinval":<String_value>,
"insnssrvrhdr":<String_value>,
"nssrvrhdr":<String_value>,
"logerrresp":<String_value>,
"conmultiplex":<String_value>,
"maxreusepool":<Double_value>,
"http2serverside":<String_value>,
"builtin":<String[]_value>
}]}