This is the most common way to send a file to a server or API.

Use the -d flag if you want to send the raw text content as the body.

What are you using (e.g., Postman, Python, JavaScript, Linux Terminal)? Is there a specific API or server you are trying to reach?