HttpClient.ContentType

Use this option to set a custom content type. If possible use PostMode to specify a predefined content type as it will ensure that Post data is appropriately formatted.

If setting the content type manually POST data

public string ContentType { get; set; }

See also:

Class HttpClient

© West Wind Technologies, 1996-2020 • Updated: 07/15/20
Comment or report problem with topic