OSSL_HTTP_REQ_CTX_set_request_line

Set the first HTTP request line (method and request-target) on rctx.

Synopsis

Declared in <openssl/http.h>

int
OSSL_HTTP_REQ_CTX_set_request_line(
    OSSL_HTTP_REQ_CTX* rctx,
    int method_POST,
    char const* server,
    char const* port,
    char const* path);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
rctxRequest context to update.
method_POSTNonzero for POST; zero for GET.
serverOptional origin host an HTTP proxy should forward to, or NULL.
portOptional origin port for proxy forwarding, or NULL.
pathRequest path (NULL means "/"); may be an absolute http:// URI for proxy use (then server/port must be NULL).