1# Civetweb API Reference
2
3### `mg_send_file_body( conn, path );`
4
5### Parameters
6
7| Parameter | Type | Description |
8| :--- | :--- | :--- |
9|**`conn`**|`struct mg_connection *`|The connection over which the file must be sent|
10|**`path`**|`const char *`|The full path and filename of the file|
11
12### Return Value
13
14| Type | Description |
15|`int`| An integer indicating success (>=0) or failure (<0) |
16
17### Description
18
19The function `mg_send_file_body()` sends the contents of a file over a connection to the remote peer without adding any HTTP headers. The code must send all required HTTP response headers before using this function.
20
21### See Also
22
23* [`mg_send_file();`](mg_send_file.md)
24* [`mg_send_mime_file();`](mg_send_mime_file.md)
25* [`mg_send_mime_file2();`](mg_send_mime_file2.md)
26* [`mg_printf();`](mg_printf.md)
27* [`mg_write();`](mg_write.md)
28
29