ec_httpsrv_request_header_get
Name
ec_httpsrv_request_header_get — Gets the value of a specific HTTP request header
Synopsis
#include "modules/listeners/httpsrv.h"
| int **ec_httpsrv_request_header_get** (
| sess, | |
| | name, | |
| | value)
; | |
ec_httpsrv_session * <var class="pdparam">sess</var>
;
const char * <var class="pdparam">name</var>
;
const char ** <var class="pdparam">value</var>
;
Description
Note
This reference page was automatically generated from functions found in the header files in the development branch. The function described here may not exist in generally available versions of Momentum, and may change in behavior when it is generally available. Consult your vendor for definitive advice on the use of this function.
Gets the value of a specific HTTP request header.
- sess
-
the session to interrogate
- name
-
the name of the header to query
- value
-
the value of the header
0 on success, ENOENT if the named header is missing from the request, or some other errno value for other error conditions.
The name is treated in a case insensitive manner.
The returned string is valid for the lifetime of the request.