When POST request are sent to "http://domain.com/directory/", the POST data isn't received. But if it's sent to "http://domain.com/directory/index.php" it is received.
How can I make it work when just the directory is called? Thanks!
If you're running Apache, check if the mod_dir module is enabled and configured correctly. These are the contents of my dir.conf:
<IfModule mod_dir.c>
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm
</IfModule>
Have you tried using a tool like HttpFox for Firefox to see if when you make a request to the directory on its own, you are being redirected? I know a redirect can kill a POST request as it gets converted into a GET request.
As Lucanos said, is the web server redirecting to index.php
? POST data might get "lost" between pages if you redirect. Try GET and check if the URL ends with correct data.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With