1 # Civetweb API Reference
3 ### `mg_get_request_info( conn );`
7 | Parameter | Type | Description |
9 |**`conn`**|`const struct mg_connection *`|The connection for which the request info is needed|
13 | Type | Description |
15 |`const struct mg_request_info *`|Pointer to the requested info, or NULL if an error occured|
19 The function `mg_get_request_info()` returns information about the request on a given connection. This information is returned as a pointer to a [`mg_request_info`](mg_request_info.md) structure. If an error occurs, a NULL pointer is returned instead.
21 Use this function when implementing a server.
25 * [`struct mg_request_info;`](mg_request_info.md)
26 * [`mg_get_response_info();`](mg_get_response_info.md)
27 * [`struct mg_response_info;`](mg_response_info.md)