[#OSSL_HTTP_exchange]
= OSSL&lowbar;HTTP&lowbar;exchange
:mrdocs:

Perform the HTTP exchange and return a BIO of the response body&period;

== Synopsis

Declared in `&lt;openssl&sol;http&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BIO.adoc[BIO]*
OSSL&lowbar;HTTP&lowbar;exchange(
    xref:OSSL_HTTP_REQ_CTX.adoc[OSSL&lowbar;HTTP&lowbar;REQ&lowbar;CTX]* rctx,
    char** redirection&lowbar;url);
----

== Return Value

Memory BIO containing the response body, or NULL on failure&semi; free with BIO&lowbar;free()&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *rctx*
| Request context prepared with method, headers, and optional request body&period;
| *redirection&lowbar;url*
| Optional receiver for an allocated redirect URL on 3xx, or NULL&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
