Yes, It is an optional request header. 
Both Firefox and cURL creates a content-length field for post requests . It is omitted from the command in order to use the content-length cURL creates.