A basic question about POST data capture failure: apache + php $. post ('/user/daka', {& quot; test & quot;: & quot; 1 & quot;}, function (data ){....}) & nbsp; $. post ('/user/daka/', {& quot; test & quot;: The POST cannot capture data.
Ask a basic question:
Environment apache + php
$. Post ('/user/daka', {"test": "1"}, function (data ){....})
$. Post ('/user/daka/', {"test": "1"}, function (data) {...}) // multiple slashes behind the url
The first line of code, $ _ POST cannot obtain data, and the second line can.
Should this be apache configuration or php configuration?
------ Solution --------------------
It's neither apache nor php, but you're wrong.
If a slash is added, it is the default index file in this directory.
If it is not added, it is the daka file... of course, you do not have the data returned by the daka file, right?
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service