OCSPRequestSendRequest Method

Sends OCSP request (encoded raw data) to a OCSP responder specified in URL.

Definition

Namespace: SysadminsLV.PKI.OcspClient
Assembly: SysadminsLV.PKI.OcspClient (in SysadminsLV.PKI.OcspClient.dll) Version: 4.0.1
C#
public OCSPResponse SendRequest()

Return Value

OCSPResponse
OCSPResponse object that represents OCSP response.

Remarks

The following behavior is used by this method:

A GET network method is attempted. If GET fails with either, HTTP404 (Not Found) or HTTP405 (Method Not Allowed), a POST network method is used. If GET method fails with any other HTTP error code, POST method is not used.

Exceptions

InvalidOperationExceptionThe OCSP server URL is NULL.

See Also