OSSL_HTTP_REQ_CTX_exchange

Exchange the prepared HTTP request and response, retrying non-blocking I/O until done or timeout.

Synopsis

Declared in <openssl/http.h>

BIO*
OSSL_HTTP_REQ_CTX_exchange(OSSL_HTTP_REQ_CTX* rctx);

Return Value

BIO positioned at the response body (memory BIO for expected ASN.1, else rbio); do not free; NULL on failure.

Parameters

NameDescription
rctxRequest context with BIOs and headers/body configured.