{
  "synLogic": "int $ret \u003d $api($1, $2, $3);",
  "help": "The ns_web_add_header API is adds specified HTTP header to the next request only that follows it.",
  "notes": "Web scripts automatically send standard headers with each HTTP request they submit. You can add additional headers using the ns_web_add_header API. This instructs Netstorm to generate the specified header only for the HTTP request that follows it. This is in contrast to the ns_web_add_auto_header API that adds to all the subsequent HTTP requests.\n\nThere are three modes/flags for the same.\n0 - To send in Main URL only \n1 - To send in embedded URLs only \n2 - To send in both Main and Embedded.URLs",
  "returns": "int",
  "arguments": "\u003ctable class\u003d\"newGuiTable\" style\u003d\"width:100%\" \u003e \u003ctr\u003e \u003cth\u003e Argument \u003c/th\u003e \u003cth\u003e Description \u003c/th\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e Header Name \u003c/td\u003e \u003ctd\u003e Name of the HTTP header \u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e Content \u003c/td\u003e \u003ctd\u003e Value of the HTTP header \u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e Flag \u003c/td\u003e \u003ctd\u003e The mode in which the header will be sent. It should be provided as a number. There are three possible values: \n0 - To send in Main URL only\n1 - To send in embedded URLs only\n2 - To send in both Main and Embedded Urls.\n \u003c/td\u003e \u003c/tr\u003e \u003c/table\u003e",
  "parameterization": "",
  "component": [
    {
      "id": "$1",
      "type": "TextField",
      "label": "Header",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter Header",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "Text",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 0
      },
      "quotes": true
    },
    {
      "id": "$2",
      "type": "TextField",
      "label": "Content",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter Content",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "Text",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 0
      },
      "quotes": true
    },
    {
      "id": "$3",
      "type": "Dropdown",
      "label": "Flag",
      "value": 0,
      "css": "p-grid p-align-center w-100-p",
      "title": "Select Flag",
      "placeHolder": "select Flag",
      "style": "",
      "isDisabled": "",
      "list": [
        {
          "label": "MAIN",
          "value": 0
        },
        {
          "label": "EMBEDED",
          "value": 1
        },
        {
          "label": "BOTH",
          "value": 2
        }
      ],
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "text",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 0
      }
    },
    {
      "id": "$ret",
      "type": "TextField",
      "label": "Return Value",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "First character must be Alpha.\r\nOther characters are Alpha, Numeric or Underscore",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
		"inputType": "Text",
		"pattern": "^[a-zA-Z][a-zA-Z0-9_]{0,63}$",
		"method": "isValidVar(arg)",
		"required": false
      },
      "quotes": true
    }
  ],
  "name": "ns_web_add_header",
  "syntax": "int ns_web_add_header(char *header, char *content, int flag)",
  "javaSyntax": "ns_web_add_header(String header, String content, int flag)",
  "jsEx": "\n  //To send authentication token header:\n  nsApi.ns_web_add_header(\"Authtoken\", \"Cav7gh43dk98cs7432790\u003d2@\", 0);\n",
  "cEx": "flow()\n{\n  //To send authentication token header:\n  ns_web_add_header(\"Authtoken\", \"Cav7gh43dk98cs7432790\u003d2@\", 0);\n}",
  "javaEx": "\n  //To send authentication token header:\n  nsApi.ns_web_add_header(\"Authtoken\", \"Cav7gh43dk98cs7432790\u003d2@\", 0);\n", 
  "jsSyntax": "ns_web_add_auto_header(header: string, content: string, flag: number)",
  "insertStrC": "ns_web_add_header(char *header, char *content, int flag);",
  "insertStrJava": "ns_web_add_header(String header, String content, int flag);",
  "insertStrJs": "ns_web_add_auto_header(header: string, content: string, flag: number);",
  "description": "The ns_web_add_header API is used to add specified HTTP header to the next request only that follows it."
}
