1 # Civetweb API Reference
3 ### `mg_get_request_link( conn, buf, buflen );`
7 | Parameter | Type | Description |
9 |**`conn`**|`struct mg_connection *`| A pointer referencing the connection |
10 |**`buf`**|`char *`| A buffer to store the link |
11 |**`buflen`**|`size_t`| Size of the buffer |
15 | Type | Description |
17 |`int`| Return code: <0 for error, >=0 for success |
21 Store a formatted link corresponding to the current request.
24 `http://mydomain.com:8080/path/to/callback.ext`
26 `http://127.0.0.1:8080/path/to/callback.ext`
27 depending on the auth check settings.