]>
Commit | Line | Data |
---|---|---|
11fdf7f2 TL |
1 | # Civetweb API Reference |
2 | ||
3 | ### `mg_get_request_link( conn, buf, buflen );` | |
4 | ||
5 | ### Parameters | |
6 | ||
7 | | Parameter | Type | Description | | |
8 | | :--- | :--- | :--- | | |
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 | | |
12 | ||
13 | ### Return Value | |
14 | ||
15 | | Type | Description | | |
16 | | :--- | :--- | | |
17 | |`int`| Return code: <0 for error, >=0 for success | | |
18 | ||
19 | ### Description | |
20 | ||
21 | Store a formatted link corresponding to the current request. | |
22 | ||
23 | E.g., returns | |
24 | `http://mydomain.com:8080/path/to/callback.ext` | |
25 | or | |
26 | `http://127.0.0.1:8080/path/to/callback.ext` | |
27 | depending on the auth check settings. | |
28 | ||
29 | ### See Also |