| Version: v2023-09-20 | Includes use: Yes | 
|---|
Behavior name: Allow POST
Allow HTTP requests using the POST method. By default, GET, HEAD, and OPTIONS requests are allowed, and POST requests are denied with 403 error. All other methods result in a 501 error. See also the allow_delete, allow_options, allow_patch, and allow_put behaviors.
Default behavior
These samples reflect the behavior's default settings. You can use these as is in your configurations or make adjustments based on the behavior's available options.
data "akamai_property_rules_builder" "allow_post" {
  rules_v2023_09_20 {
    name     = "Allow POST"
    comments = "Allow HTTP requests using the POST method."
    behavior {
      allow_post {
        enabled = true
        allow_without_content_length = false
      }
    }
  }
}
"behaviors": [
  {
    "name": "allowPost",
    "options": {
      "enabled": true,
      "allowWithoutContentLength": false
    }
  }
]
Options
| Option | Description | 
|---|---|
| enabled | Allows  POSTrequests. | 
| allow_without_content_length | By default,  POSTrequests also require aContent-Lengthheader, or they result in a411error. With this option enabled with no specifiedContent-Lengththe edge server relies on aTransfer-Encodingheader to chunk the data. If neither header is present, it assumes the request has no body, and it adds a header with a0value to the forward request. | 
