AddUrl is one of content methods This method add a string as sub url to content. Links, Images, Style files and etc are all sub URLs of contents. Any analyzer can add Sub URL to contents by AddUrl method.
This is samples of AddUrl method:
This sample add all images in page as sub url to html pages. This lets Iron Web Analyzer to download images or check the urls
if content.AsHtml != None:
<TAB>for i in content.AsHtml.GetElementByTag("img"):
<TAB><TAB>if i.Attributes["src"] != None:
<TAB><TAB><TAB>content.AddUrl(i.Attributes["src"].Value)
<TAB><TAB>else:
<TAB><TAB><TAB>content.AddMessage("Image tag without source value", "w", i.Line, i.LinePosition)
©Copyright Hamed J.I 2010. Hosted on SourceForge