In Magento 2.4.3 We can use the below code to get the post value in the controller.
namespace Module\Custom\Controller; use Magento\Framework\App\Action\HttpPostActionInterface; use Magento\Framework\Controller\ResultFactory; class Index extends \Magento\Framework\App\Action\Action implements HttpPostActionInterface { /** * @var Psr\Log\LoggerInterface */ protected $logger; /** * @param Magento\Framework\App\Action\Context $context * @param Psr\Log\LoggerInterface $logger */ public function __construct( \Magento\Framework\App\Action\Context $context, \Psr\Log\LoggerInterface $logger ) { parent::__construct($context); $this->logger = $logger; } /** * @return \Magento\Framework\Controller\ResultInterface */ public function execute() { try { $allPostValues = $this->getRequest->getParams(); $onePostValue = $this->getRequest->getParam('post_param'); $this->logger->info($onePostValue); $this->logger->info(print_r($allPostValues,true)); return $this->resultFactory->create(ResultFactory::TYPE_PAGE); } catch (\Exception $e) { $this->logger->error($e->getMessage()); } } }