external POST request to WP returns HTML
-
My dev site’s WP is returning the home page HTML rather than passing a POST request to a plugin!
I have MAMP 4.1.1 installed and need to develop PHP scripts outside of WP to communicate with a WP plugin (WooCommerce Software License by Nsp-Code). On my actual site and on my laptop, the plugin’s responses are returned normally, but on my desktop dev site, the POST requests return the HTML of the home page. Both Macs are configured the same, running Sierra 10.12.3, same WordPress setup; the only likely difference being the PHP mail settings (using smtp_catcher on the iMac). It would be nice if that could be fixed with a simple setting in wp-config.php but I suspect the most likely way around it is a POST-only PHP script to target instead of the index.php.
If there’s no simple fix, does a PHP script exist to dispatch POSTs but never return HTML?
8-\
- The topic ‘external POST request to WP returns HTML’ is closed to new replies.