Forum Discussion
Feb 25, 2009
I think this tech tip I wrote is just what you are looking for:
http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=254
Click here
It's written in PowerShell but converting the logic to C should be trivial.
-Joe