private void VerifyHTTPS(HttpWebResponse response)
{
// Add the debug information
this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMAPIHTTP_R2: the HTTP status code in response is {0}", response.StatusCode.ToString());
// Verify MS-OXCMAPIHTTP requirement: MS-OXCMAPIHTTP_R2
bool isVerifiedR2 = string.Compare("HTTPS", response.ResponseUri.Scheme, true) == 0 && response.StatusCode == HttpStatusCode.OK;
this.Site.CaptureRequirementIfIsTrue(
isVerifiedR2,
2,
@"[In Transport] The protocol MUST use HTTPS secure requests using version 1.1 of HTTP, as specified in [RFC2616] and [RFC2818].");
// Add the debug information
this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMAPIHTTP_R456");
// Verify MS-OXCMAPIHTTP requirement: MS-OXCMAPIHTTP_R456
this.Site.CaptureRequirementIfAreEqual<string>(
"POST",
response.Method,
456,
@"[In Transport] POST supports uploading a request block and returning a response block.");
}