User request Content-Lenght header bigger than body hangs Hurl
Author: jcamielCreated May 28, 2025Updated Jul 10, 2026
Labelsbug
Given a request with a Content-Length header bigger than the provided request body:
POST http://localhost:8000/request-content-length
Content-Length: 100
`Hello`Hurl hangs in sending request (certainly libcurl is waiting to have all the data to initiate the HTTP transfer)
I'm not sure if this is an issue or not given that the curl command also hangs:
$ curl --header 'Content-Length: 100' --header 'Content-Type:' --data 'Hello' 'http://localhost:8000/request-content-length-100'At least , we can display a warning since we're not supporting streaming for now.
Source: Orange-OpenSource/hurl