ASP Examples

ChilkatHOMEASPVisual BasicVB.NETC#Visual C++CMFCDelphiFoxProJavaPerlPHPPythonRubySQL ServerVBScript

ASP Examples

ASP String
ASP Byte Array
Bounced Mail
Bz2
Character Encoding
CSV
Digital Certificates
Digital Signatures
Email
FTP
HTML-to-XML
HTTP
IMAP
Encryption
MHT / HTML Email
POP3
RSA
S/MIME
SMTP
Socket
Spider
SSH
SSH Tunnel
SSH Key
SFTP
Tar
ASP Upload
XML
XMP
Zip Compression

More Examples...
Email Object
FileAccess
RSS
Atom
Self-Extractor
Service
PPMD
Deflate
DH Key Exchange
DSA

Unreleased...
Bzip2
LZW
Icon

 

 

 

 

 

 

HTTP HEAD Request

Simple HTTP HEAD request to download only the HTTP header.

Download Chilkat HTTP ActiveX

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
set http = Server.CreateObject("Chilkat.Http")

'  Any string unlocks the component for the 1st 30-days.
success = http.UnlockComponent("Anything for 30-day trial")
If (success <> 1) Then
    Response.Write http.LastErrorText & "<br>"

End If

'  Send the HEAD request and get the response.

Set response = http.GetHead("http://www.chilkatsoft.com/")

If (response Is Nothing ) Then
    Response.Write http.LastErrorText & "<br>"
Else

    '  Show the HTTP response code and header received.
    Response.Write Server.HTMLEncode( "HTTP response code: ") & "<br>"
    Response.Write Server.HTMLEncode( response.StatusCode) & "<br>"

    Response.Write Server.HTMLEncode( "---- FULL HEADER ----") & "<br>"
    Response.Write Server.HTMLEncode( response.Header) & "<br>"
    Response.Write Server.HTMLEncode( "---------------------") & "<br>"

    '  How big will the full response be?  This is a good way to
    '  check the size of a download (if the URL is a .zip)
    Response.Write Server.HTMLEncode( "Size of resource = " _
         & response.ContentLength) & "<br>"

End If

%>
</body>
</html>

 

Need a specific example? Send a request to support@chilkatsoft.com

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