cURL is widely used for making HTTP requests. With this, you can send requests to API to retrieve or manipulate data, submit form, file upload, etc.
CodeIgniter 4 already provided a CURLRequest class for sending cURL requests.
In this tutorial, I show how you can upload file using cURL from the CodeIgniter 4 project to another project.