VB.NET Examples

ChilkatHOMEAndroid™ASPVisual BasicVB.NETC#iOS (IPhone)Objective-CC++CUnicode C++Unicode CMFCDelphi DLLDelphi ActiveXFoxProJavaPerlPHP ExtensionPHP ActiveXPythonPowerShellRubySQL ServerVBScript

VB.NET Examples

Bounced Mail
Bz2
Character Encoding
CSV
Digital Certificates
Digital Signatures
Email
FTP
HTML Conversion
HTTP
IMAP
Encryption
MHT / HTML Email
POP3
PFX
RSA
S/MIME
SMTP
Socket
Spider
SSH
SSH Tunnel
SSH Key
SFTP
Tar Archive
Upload
XML
XMP
Zip Compression
Misc

More Examples...
Amazon S3
Email Object
DKIM / DomainKey
NTLM
FileAccess
RSS
Atom
Self-Extractor
Service
PPMD
Deflate
DH Key Exchange
DSA
Bzip2
LZW

Byte Array
VB.NET FTPS
System.IO

 

 

 

 

 

 

(VB.NET) Get Referenced Domains

Demonstrates how to accumulate a list of unique domain names referenced from outbound URLs.

Download: Chilkat .NET Assemblies

'  The Chilkat Spider component/library is free.
Dim spider As New Chilkat.Spider()

Dim domainList As New Chilkat.StringArray()

'  Set the Unique property so that duplicates are not added.
domainList.Unique = true

'  Crawl the home page of joelonsoftware.com and get the outbound URLs
spider.Initialize("www.joelonsoftware.com")
spider.AddUnspidered("http://www.joelonsoftware.com/")

Dim success As Boolean
success = spider.CrawlNext()

'  Build a list of unique domains.
Dim i As Long
Dim url As String
For i = 0 To spider.NumOutboundLinks - 1
    url = spider.GetOutboundLink(i)
    domainList.Append(spider.GetUrlDomain(url))
Next

'  Display the domains.
For i = 0 To domainList.Count - 1
    TextBox1.Text = TextBox1.Text & domainList.GetString(i) & vbCrLf
Next
 

© 2000-2013 Chilkat Software, Inc. All Rights Reserved.