
326
|
Chapter 16: The HttpRequest Class
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Message.Text = "Certificate Issuer is: " & cs.Issuer & "."
End Sub
Notes
You will probably use this property in intranet settings, where you have provided
a limited set of clients with certificates (issued from your own Certificate Server)
for accessing your application, rather than requiring them to authenticate by using
a set of credentials entered via the browser. In this case, client certificates are
mapped to NT user accounts to provide secure access. Client certificates can also
be issued by trusted third parties, but this method is rarely used. If no client certif-
icate is installed on the requesting client, this property returns an
HttpClientCertificate instance with no valid property values.
ContentEncoding
ce = Request.ContentEncoding
Returns an instance of the Encoding class (located in the System.Text namespace),
which represents the character encoding of the body of the current request.
Parameter
ce
An Object variable of type Encoding.
Example
The example demonstrates how to display the current ContentEncoding to the
user:
Sub Page_Load( )
Dim ce As System.Text.Encoding
ce = Request.ContentEncoding
Message.Text = "Current encoding is: " & ce.EncodingName & "."
End Sub
For a request using UTF-8 content encoding, the output of this example