I'd like to display the size of each request in the session list of fiddler. What I tried so far, was to add a custom column in the CustomRules.js file:
public static BindUIColumn("RequestSize")
function CalcMethodCol(oS: Session)
{
if (null != oS.requestBodyBytes)
return oS.requestBodyBytes.Length; //this is the relevant line
else
return "?";
}
But this results in an error when fiddler tries to load the script.
If I change the line with the comment to this:
return typeof(oS.requestBodyBytes.Length);
then fiddler displays 'number' in the RequestSize column. Because of that I guess that I'm not very far away from what I'm trying to achieve. I just can't figure out how to display the size of the requestBodyBytes field.
Any hints what I'm doing wrong or what is missing?