Zend certified PHP/Magento developer

How to post data to other system?

I want to add post data to my other system.
How do I execute post data method to post data to other system, when customer confirm their subscription email link ? I would like to post out customer email address to the other system. When trigger vendor/module-newsletter/controller/subscriber/confirm.php

< ?php
/**
 *
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
declare(strict_types=1);

namespace MagentoNewsletterControllerSubscriber;

use MagentoFrameworkAppActionHttpGetActionInterface;

/**
 * Confirm subscription controller.
 */
class Confirm extends MagentoNewsletterControllerSubscriber implements HttpGetActionInterface
{
    /**
     * Subscription confirm action.
     *
     * @return MagentoFrameworkControllerResultRedirect
     */
    public function execute()
    {
        $id = (int)$this->getRequest()->getParam('id');
        $code = (string)$this->getRequest()->getParam('code');

        if ($id && $code) {
            /** @var MagentoNewsletterModelSubscriber $subscriber */
            $subscriber = $this->_subscriberFactory->create()->load($id);

            if ($subscriber->getId() && $subscriber->getCode()) {
                if ($subscriber->confirm($code)) {
                    $this->messageManager->addSuccessMessage(__('Your subscription has been confirmed.'));
                } else {
                    $this->messageManager->addErrorMessage(__('This is an invalid subscription confirmation code.'));
                }
            } else {
                $this->messageManager->addErrorMessage(__('This is an invalid subscription ID.'));
            }
        }
        /** @var MagentoFrameworkControllerResultRedirect $redirect */
        $redirect = $this->resultFactory->create(MagentoFrameworkControllerResultFactory::TYPE_REDIRECT);
        $redirectUrl = $this->_storeManager->getStore()->getBaseUrl();
        return $redirect->setUrl($redirectUrl);
    }
}