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-2016 • Updated: 12/12/15
Comment or report problem with topic