Hurl debug curl command is erroneous with text request body that start with `@`
Author: jcamielCreated Jul 22, 2026Updated Jul 22, 2026
Labelsbug
Given this Hurl file:
POST https://httpbin.io/anything
```
@filename
```(post a text body @filename), the debug curl command produced by Hurl is erroneous:
$ hurl --verbose test.hurl
* ------------------------------------------------------------------------------
* Executing entry 1
*
...
* Request can be run with the following curl command:
* curl --header 'Content-Type:' --data $'@filename\n' 'https://httpbin.io/anything'
*
> POST /anything HTTP/1.1Then running the curl command:
$ curl --header 'Content-Type:' --data $'@filename\n' 'https://httpbin.io/anything'
curl: Failed to open filename
curl: option --data: error encountered when reading a file
curl: try 'curl --help' or 'curl --manual' for more informationWhen producing curl command, we should:
- use
--data-rawfor non binary body that doesn't start with an@ - use
--data-binaryotherwise
Source: Orange-OpenSource/hurl