Append an HTTP request header name/value pair to an HTTP request context.
Synopsis
Declared in <openssl/http.h>
int
OSSL_HTTP_REQ_CTX_add1_header(
OSSL_HTTP_REQ_CTX* rctx,
char const* name,
char const* value);
Return Value
1 on success, or 0 on failure.
Parameters
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. |
Created with MrDocs