我正在尝试FiddlerCore作为我的代理,我面临着如何识别视频/文件请求的问题?
oS.bBufferResponse = true;
Monitor.Enter(oAllSessions);
oAllSessions.Add(oS);
Monitor.Exit(oAllSessions);我希望允许代理中的流,为了做到这一点,我似乎需要将bBufferResponse设置为false,因为oSession试图流视频。我看不到区分视频/文件请求和html/css/js/img的好方法。任何帮助都会感谢珀斯。
发布于 2014-08-05 15:14:37
将事件处理程序附加到FiddlerApplication.ResponseHeadersAvailable并检查Content-Type头:
string sContentType = oS.oResponse.MIMEType;
if (sContentType.OICStartsWithAny("text/event-stream", "multipart/x-mixed-replace",
"video/", "audio/", "application/x-mms-framed"))
{
oS.bBufferResponse = false;
}https://stackoverflow.com/questions/25127501
复制相似问题