[#OSSL_HTTP_REQ_CTX_set_request_line] = OSSL_HTTP_REQ_CTX_set_request_line :mrdocs: Set the first HTTP request line (method and request‐target) on `rctx.` == Synopsis Declared in `<openssl/http.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int OSSL_HTTP_REQ_CTX_set_request_line( xref:OSSL_HTTP_REQ_CTX.adoc[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 [cols="1,4"] |=== | 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). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#