Zend certified PHP/Magento developer

How do I send API call by POST method in side Magento?

my vendor gave us a http link, they want me to send the data by POST method. how I can insert the curl request inside /vendor/magento/moudle-newsletter/controller/subscriber/confirm.php? I know I have to write an override module to handle it. can anyone provide a sample that I can follow? thanks