Append an HTTP request header name/value pair to an HTTP request context.
Declared in <openssl/http.h>
int
OSSL_HTTP_REQ_CTX_add1_header(
OSSL_HTTP_REQ_CTX* rctx,
char const* name,
char const* value);
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| rctx | Request context previously created with OSSL_HTTP_REQ_CTX_new(). |
| name | Header field name (for example "Content-Type"). |
| value | Header field value, or NULL to send a header with an empty value. |