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
Name |
Description |
rctx |
Request context prepared with method, headers, and optional request body. |
redirection_url |
Optional receiver for an allocated redirect URL on 3xx, or NULL. |
Created with MrDocs