chez moi ça donne
root@pigeonsrapides:~# curl -v -X POST http://127.0.0.1:6788/login -d "credentials=foo:bar"
Note: Unnecessary use of -X or --request, POST is already inferred.
* Trying 127.0.0.1:6788...
* Connected to 127.0.0.1 (127.0.0.1) port 6788 (#0)
> POST /login HTTP/1.1
> Host: 127.0.0.1:6788
> User-Agent: curl/7.88.1
> Accept: */*
> Content-Length: 19
> Content-Type: application/x-www-form-urlencoded
>
< HTTP/1.1 401 Unauthorized
< Content-Length: 16
< Content-Type: text/html; charset=UTF-8
< Date: Thu, 07 Nov 2024 18:53:24 GMT
<
* Connection #0 to host 127.0.0.1 left intact
Invalid passwordroot@pigeonsrapides:~#