VB.NET Examples

ChilkatHOMEAndroid™ASPVisual BasicVB.NETC#iOS (IPhone)Objective-CC++CMFCDelphiFoxProJavaPerl
PHP 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

 

 

 

 

 

 

If-Modified-Since HTTP Header

Download Chilkat .NET for 4.0 Framework

Download Chilkat .NET for 64-bit 4.0 Framework (x64)

Download Chilkat .NET for 2.0 / 3.5 Framework

Download Chilkat .NET for 64-bit 2.0 / 3.5 Framework (x64)

Download Chilkat .NET for 1.0 / 1.1 Framework

Demonstrates how to use the if-modified-since header in VB.NET to send an HTTP request that will only return the full page if it has been modified. NOTE: This depends on the HTTP server supporting if-modified-since, and dynamic pages may never return a 304 status code.

        Dim http As New Chilkat.Http
        http.UnlockComponent("anything for 30-day trial")

        ' Return the HTML page only if it's been modified since this date...
        http.SetRequestHeader("If-Modified-Since", "Thu, 07 Sep 2006 17:12:50 GMT")

        Dim html As String
        html = http.QuickGetStr("http://www.thaibugs.com/")
        If (Len(html) = 0) Then
            If (http.LastStatus = 304) Then
                MessageBox.Show("Has not been modified!")
            Else
                MessageBox.Show(http.LastStatus)
                MessageBox.Show(http.LastResponseHeader)
            End If
        Else
            MessageBox.Show(http.LastResponseHeader)
        End If




 

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

Mail Component · XML Parser