2

The ContentType property of (Http)WebResponse maps to the HTTP/1.1 Content-Type which is a Media-Type that contains a type/subtype optionally followed by parameters which are attribute=value pairs.

I'm mainly interested in the type/subtype and the charset parameter.

The charset is mapped from HttpWebRequest.CharacterSet.

Is there a library that just retrieves the media type/subtype of the ContentType?

Community
  • 1
  • 1
Jeroen Wiert Pluimers
  • 23,965
  • 9
  • 74
  • 154
  • it may helps to you http://stackoverflow.com/questions/58510/using-net-how-can-you-find-the-mime-type-of-a-file-based-on-the-file-signature – Sunil Gudivada Apr 16 '14 at 10:05
  • For now I'm just looking at something that dissects the `ContentType`. In the future I might use that in the future if I find out that the returned data does not match the `ContentType`. – Jeroen Wiert Pluimers Apr 16 '14 at 10:35

0 Answers0