How to generate formkey in Magento and send a POST request?
-
03-10-2020 - |
Question
Magento uses some sort of form key to send POST data. I want to send POST data to a controller in Magento and receive it. How do I do that?
Solution
Try Mage::getSingleton('core/session')->getFormKey()
to get a valid form key.
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange