Hello, Damien--
There's nothing in Fiddler to specifically handle "counting" so this becomes a more general question of "how can I count occurrences of a substring in .NET?"
if (oSession.HostnameIs("whatever.com") && oSession.ResponseHeaders.ExistsAndContains("Content-Type", "text/"))
{
var strText: String = oSession.GetResponseBodyAsString();
var iCount = 0;
// Call your counting function here. See e.g. http://stackoverflow.com/a/15142776/126229 for example
if (iCount > 0) {
oSession["ui-color"] = "green";
oSession["ui-customcolumn"]="found " + iCount.ToString();
}
}
Regards,
Eric Lawrence
Telerik
There's nothing in Fiddler to specifically handle "counting" so this becomes a more general question of "how can I count occurrences of a substring in .NET?"
if (oSession.HostnameIs("whatever.com") && oSession.ResponseHeaders.ExistsAndContains("Content-Type", "text/"))
{
var strText: String = oSession.GetResponseBodyAsString();
var iCount = 0;
// Call your counting function here. See e.g. http://stackoverflow.com/a/15142776/126229 for example
if (iCount > 0) {
oSession["ui-color"] = "green";
oSession["ui-customcolumn"]="found " + iCount.ToString();
}
}
Regards,
Eric Lawrence
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items