curl adds headers like `User-Agent` and `Accept` on its own, and sometimes a test needs a request without them.
curl -v -H 'User-Agent:' -H 'Accept:' -H 'X-Empty;' https://example.com/
A header name followed by a colon and no value removes the header curl would normally send. A name followed by a semicolon sends the header with an empty value, so X-Empty; goes out as X-Empty:. With -v the lines that start with > are the request, which shows the result. Removing Host is possible too, but the server will most likely refuse the request.
Further reading: curl manual