# Post request returns \`411 Length Required\`

**URL:** <https://community.postman.com/t/post-request-returns-411-length-required/58190>\
**Category:** Help Hub\
**Tags:** response, request\
**Created:** [February 27, 2024, 3:02pm UTC](https://community.postman.com/t/post-request-returns-411-length-required/58190 "2024-02-27T15:02:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![liomace](https://avatars.discourse-cdn.com/v4/letter/l/e9c0ed/32.png) [@liomace](https://community.postman.com/u/liomace)\
**Post date:** [February 27, 2024, 3:02pm UTC](https://community.postman.com/t/post-request-returns-411-length-required/58190/1 "2024-02-27T15:02:07Z")

</div>

Sending the POST request below returns 411 Length required in Postman desktop. It runs fine if I run it in my Terminal. It used to work in Postman.

What am I missing?

```auto
curl --location 'https://containers.cloud.ibm.com/global/v2/vpc/createCluster' \
--header 'Authorization: XXXXX' \
--header 'X-Auth-Resource-Group: 9a6566da10fe448d9a093e61af45e674' \
--header 'Content-Type: application/json' \
--data '{
  "cosInstanceCRN": "crn:v1:bluemix:public:cloud-object-storage:global:a/0b5a00334eaf9eb9339d2ab48f7326b4:69284256-ead9-43f7-a069-4cf707c9f6cc::",
  "cseACLEnabled": true,
  "defaultWorkerPoolEntitlement": "cloud_pak",
  "disablePublicServiceEndpoint": false,
  "kubeVersion": "4.14_openshift",
  "name": "new-roks",
  "podSubnet": "172.17.0.0/18",
  "provider": "vpc-gen2",
  "requestSecure": false,
  "serviceSubnet": "172.21.0.0/16",
  "workerPool": {
    "diskEncryption": true,
    "flavor": "bx2.4x16",
    "name": "string",
    "vpcID": "r010-68dfdcd1-a8ca-4302-83a1-a14d7408ab7c",
    "workerCount": 2,
    "zones": [
      {
        "id": "eu-de-1",
        "subnetID": "02b7-b2c7c714-2376-4f55-ba65-fd905eda89ec"
      }
    ]
  }
}'

```

Environment: MacOS

---

<div class="post-metadata">

**Author:** ![liomace](https://avatars.discourse-cdn.com/v4/letter/l/e9c0ed/32.png) [@liomace](https://community.postman.com/u/liomace)\
**Post date:** [March 22, 2024, 10:21am UTC](https://community.postman.com/t/post-request-returns-411-length-required/58190/2 "2024-03-22T10:21:31Z")

</div>

Issue solved by checking the content-length in the hidden header 😊

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [March 25, 2024, 10:22am UTC](https://community.postman.com/t/post-request-returns-411-length-required/58190/3 "2024-03-25T10:22:08Z")

</div>

Closed on March 25, 2024, 10:22am UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
