1# Civetweb API Reference
2
3### `mg_get_header( conn, name );`
4
5### Parameters
6
7| Parameter | Type | Description |
8| :--- | :--- | :--- |
9|**`conn`**|`struct mg_connection *`| A pointer referencing the connection |
10|**`name`**|`const char *`| The name of the request header |
11
12### Return Value
13
14| Type | Description |
15| :--- | :--- |
16|`const char *`| A pointer to the value of the request header, or NULL of no matching header count be found |
17
18### Description
19
20HTTP and HTTPS clients can send request headers to the server to provide details about the communication. These request headers can for example specify the preferred language in which the server should respond and the supported compression algorithms. The function `mg_get_header()` can be called to return the contents of a specific request header. The function will return a pointer to the value text of the header when successful, and NULL of no matching request header from the client could be found.
21
22### See Also
23