I have this array
public static string[] BINARY_OPTIONS = {
"script",
"image",
"stylesheet",
"object",
"xmlhttprequest",
"object-subrequest",
"subdocument",
"document",
"elemhide",
"other",
"background",
"xbl",
"ping",
"dtd",
"media",
"third-party",
"match-case",
"collapse",
"donottrack",
};
Last 4 in array does not matter. I need to match Content-Type with one of those in array. But Content-Types i get with this code
Fiddler.FiddlerApplication.BeforeResponse += delegate(Fiddler.Session session)
{
if (session.oResponse["Content-Type"] != null )
Console.WriteLine(session.oResponse["Content-Type"]);
};
are like MIME Types. So I don't know which one to match. I can try, like script will match application/javascript and application/x-javascript, and image is all that starts with image (image/png, image/jpg, ...)but for subdocument (which is iframe) i dont know. Is there any site that explaines this and also how can i check in fiddler core that requests are from iframe.