{
  "synLogic": "int $ret \u003d $api($1, $2);",
  "help": "The ns_web_remove_auto_header API stops scripts from adding a specific header to subsequent HTTP requests.",
  "notes": "The ns_web_remove_auto_header API stops adding a specific user–defined header to subsequent HTTP requests. This function cancels the automatic header generation for the specified header, initiated by ns_web_add_auto_header.\r\n\r\nMode: This is to tell in which request it will go.\r\nFollowing values will be used for mode\r\n\t0: Only in Main url.\r\n\t1: Only in embedded urls.\r\n\t2: Both",
  "returns": "Returns a status of either 0 for success or 1 for failure",
  "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 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 only in Main URLs\n1 - To send only in embedded URLs\n2 - To send in both Main and Embedded.\n \u003c/td\u003e \u003c/tr\u003e \u003c/table\u003e",
  "parameterization": "",
  "component": [
    {
      "id": "$1",
      "type": "TextField",
      "label": "Header Name",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Header Name",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "Text",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 0
      }
    },
     {
      "id": "$2",
      "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 Variable",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter Return Variable",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "Text",
        "disabled": false,
        "required": false,
        "min": 0,
        "max": 0,
        "method": "isValidVar(arg)"
      }
    }
  ],
  "name": "ns_web_remove_auto_header",
  "syntax": "int ns_web_remove_auto_header(char *header, int flag)",
  "javaSyntax": "int ns_web_remove_auto_header(String header, int flag)",
  "jsSyntax": "ns_web_remove_auto_header(header: string, flag: number)",
  "cEx": "flow()\n{\n  ns_web_remove_auto_header(\"User-Agent\", 0);\n}",
  "javaEx": "public class flow implements NsFlow\n{\n  public int execute(NSApi nsApi) throws Exception\n  {\n    nsApi.ns_web_remove_auto_header(\"User-Agent\", 0);\n  }\n}",
  "jsEx": "  nsApi.ns_web_remove_auto_header(\"User-Agent\", 0);\n",
  "insertStrC": "ns_web_remove_auto_header(char *header, int flag);",
  "insertStrJava": "ns_web_remove_auto_header(String header, int flag);",
  "insertStrJs": "ns_web_remove_auto_header(header: string, flag: number);",
  "description": "The ns_web_remove_auto_header API stops scripts from adding a specific header to subsequent HTTP requests."
}
