The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 4,261 other subscribers

c# – Is there a library that gets the media type and subtype out of a HttpWebResponse/WebResponse ContentType? – Stack Overflow

Posted by jpluimers on 2014/04/16

Just asked this on SO: C# – Is there a library that gets the media type and subtype out of a HttpWebResponse/WebResponse ContentType?.

Anyone here or at G+ that has a hint?

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

I’m mainly interested in the type/subtype and the [WayBack] charset parameter.

The charset is mapped from [WayBack] HttpWebRequest.CharacterSet.

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

–jeroen

via: [WayBack] c# – Is there a library that gets the media type and subtype out of a HttpWebResponse/WebResponse ContentType? – Stack Overflow.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.