cancel
Showing results for 
Search instead for 
Did you mean: 
ztamas
Level 9

"MediaType.EnsuredTypes" property in access log

Dear Community,

Could someone tell me how can I insert the "MediaType.EnsuredTypes" property into the access log?

The result of the MediaType.FromHeader property sometimes missing.

[07/Feb/2013:08:59:39 +0000] "" 10.35.176.22 200 "GET http://r3---sn-po8puxa-c0qe.c.youtube.com/crossdomain.xml HTTP/1.1" "Streaming Media, Media Sharing" "Minimal Risk" "MediaTypeFromHeader: text/x-cross-domain-policy" 736 721 "Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/20100101 Firefox/17.0" "" "0" ""

[07/Feb/2013:08:59:39 +0000] "" 10.35.176.22 403 "GET http://s.ytimg.com/yts/swfbin/watch_as3-vflp80jd_.swf HTTP/1.1" "Content Server" "Unverified" "MediaTypeFromHeader: " 3106 410 "Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/20100101 Firefox/17.0" "" "22" ""

ScreenHunter_01 Feb. 07 10.07.gif

Thanks!

Best Regards

Zoltan

0 Kudos
2 Replies
eelsasser
Level 15

Re: "MediaType.EnsuredTypes" property in access log

Ensured types could contain multiple values. A zip file could return every file type inside the zip for example and should not be used in the access.log because upstream processing/reporting of that could be affected.

+ "" ""

+ String.ReplaceIfEquals (List.OfMediaType.ToString (MediaType.EnsuredTypes, ","), "", "-")

+ """

0 Kudos
ztamas
Level 9

Re: "MediaType.EnsuredTypes" property in access log

Thanks for your help!

Best Regards

Zoltan

0 Kudos