you can do it in the following way:
curl -X POST [options] [URL]For example:
$ curl -X POST -F 'name=linuxize' -F 'email=linuxize@example.com' https://example.com/contact.php You can see more information in this link: https://linuxize.com/post/curl-post-request/