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?
La solution
Try Mage::getSingleton('core/session')->getFormKey()
to get a valid form key.
Licencié sous: CC-BY-SA avec attribution
Non affilié à magento.stackexchange