[#OSSL_HTTP_REQ_CTX_add1_header]
= OSSL&lowbar;HTTP&lowbar;REQ&lowbar;CTX&lowbar;add1&lowbar;header
:mrdocs:

Append an HTTP request header name&sol;value pair to an HTTP 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;REQ&lowbar;CTX&lowbar;add1&lowbar;header(
    xref:OSSL_HTTP_REQ_CTX.adoc[OSSL&lowbar;HTTP&lowbar;REQ&lowbar;CTX]* rctx,
    char const* name,
    char const* value);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *rctx*
| Request context previously created with OSSL&lowbar;HTTP&lowbar;REQ&lowbar;CTX&lowbar;new()&period;
| *name*
| Header field name (for example &quot;Content&hyphen;Type&quot;)&period;
| *value*
| Header field value, or NULL to send a header with an empty value&period;
|===


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