Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

HttpPostExchange

function HttpPostExchange(const aURL : string; const aBody: OctetString; const aContentType, aAccept : AnsiString; aTimeout: Cardinal; out aResponseBody: OctetString): Boolean;
HttpPostExchange posts aBody to an http(s) URL with the given request and accept content types and returns the raw response body octets. It is the shared one-shot POST transport of this unit: the OCSP client posts application/ocsp-request through it, and the RFC 3161 time-stamp client (StreamSec.DSI.Tsp) posts application/timestamp-query. An https URL borrows the GlobalServer TLS client session exactly like the OCSP transport does (and suppresses recursive revocation checking for that inner handshake). Returns False on a malformed URL, transport failure or empty response body.