Hello friendly people of serverfault,
As stated above, i am looking for a way to hide the body, as it is just noise during testing.
I'd normally use -I
, but that forces a HEAD request, which collides with POST.
Is there a way to do that with basic curl, or do i need to cut off parts with other tools?
maybe someone here knows more :)
thank you, best regards, scones
You can use
-D
to direct the output of the response headers, and-o
to direct the output of the response body.Here, we will output the headers to stdout, and the body to
/dev/null
.