No, with curl, setting these headers without a value enables the discarding thereof. I discard "Expect" to avoid the "100 Continue" step that normally occurs when using a PUT with curl. I must specify that I do not remember why I also discard "Transfer-Encoding".