I have tried various values for the Content-Length, Tried removing it altogether, setting it at 0, however, I still end up with the same message, not really sure what is causing this. The token is a base64 encoded with ASCII charset. Not sure if that is relevant.
curl -s -X POST https://dev.azure.com/xxx-Updates/_apis/hooks/subscriptions?api-version=5.0 \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: Basic WJxcnV2bXRwZWZyY2d6dmJ2NDR3M3F3azVkaHVkdG01dmE1a2pvemprcDM2Ymc1eWptYQ==' \
-d '{"publisherId": "tfs", "eventType": "workitem.created","scope": "all", "resource": {"id": 5, "rev": 1, "fields": {"System.AreaPath": "Any","System.WorkItemType": "Feature", "System.State": "New"},"url": ""},"resourceVersion": "1.0"}'
Error:-
HTTP Error 411. The request must be chunked or have a content length.

