[#OSSL_HTTP_close]
= OSSL&lowbar;HTTP&lowbar;close
:mrdocs:

Close the HTTP connection and free the request context&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OSSL&lowbar;HTTP&lowbar;close(
    xref:OSSL_HTTP_REQ_CTX.adoc[OSSL&lowbar;HTTP&lowbar;REQ&lowbar;CTX]* rctx,
    int ok);
----

== Return Value

1 if disconnect completed cleanly, or 0 if anything went wrong while closing&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *rctx*
| Context from OSSL&lowbar;HTTP&lowbar;open()&sol;OSSL&lowbar;HTTP&lowbar;transfer()&semi; may be NULL&period;
| *ok*
| 1 if the transfer succeeded (passed to any BIO update callback), or 0 on error&period;
|===


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