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-2024 • Updated: 06/29/24
Comment or report problem with topic