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

Name

Description

rctx

Request context to update.

method_POST

Nonzero for POST; zero for GET.

server

Optional origin host an HTTP proxy should forward to, or NULL.

port

Optional origin port for proxy forwarding, or NULL.

path

Request path (NULL means "/"); may be an absolute http:// URI for proxy use (then server/port must be NULL).

Created with MrDocs