OSSL_HTTP_exchange

Perform the HTTP exchange and return a BIO of the response body.

Synopsis

Declared in <openssl/http.h>

BIO*
OSSL_HTTP_exchange(
    OSSL_HTTP_REQ_CTX* rctx,
    char** redirection_url);

Return Value

Memory BIO containing the response body, or NULL on failure; free with BIO_free().

Parameters

NameDescription
rctxRequest context prepared with method, headers, and optional request body.
redirection_urlOptional receiver for an allocated redirect URL on 3xx, or NULL.