dongqiaogouk86049 2014-09-23 10:20
浏览 214

Apache或php正在丢失我的post参数

a very strange issue: I've set up a development server with vagrant. After debugging I found out, that the $_POST array of php is always empty.

So I reset everything and tried the following script on my local, vagrant set up, development server and my live server to ensure it works fine:

<?php
    var_dump($_POST);
    var_dump($_GET);
    var_dump($_REQUEST);
    phpinfo();
?>
<html>
    <body>
        <form method="POST">
            <input type="submit" name="submitbutton" value="submitbuttonvalue" />
        </form>
    </body>
</html>

On my local machine the $_POST array is empty after submission, on the live server it isn't.

So I disabled shared folders and this fance stuff and tried all network interfaces of the VM but it didn't work. Here is my phpinfo output.

http://www.file-upload.net/download-9568691/phpinfo.pdf.html

Can I check where it is lost? The content length of the header varies, when I change the post parameters. I deleted any htaccess file, so there is no redirect.

Thanks a lot

  • 写回答

2条回答 默认 最新

  • dqfr90979 2014-09-23 10:22
    关注

    Ou man,

    I found the following in my apache log ... damn newbie

    PHP Warning:  Unknown: POST Content-Length of 30 bytes exceeds the limit of 10 bytes in Unknown on line 0,
    

    sorry :)

    评论

报告相同问题?

悬赏问题

  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
  • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序
  • ¥15 onvif+openssl,vs2022编译openssl64
  • ¥15 iOS 自定义输入法-第三方输入法
  • ¥15 很想要一个很好的答案或提示
  • ¥15 扫描项目中发现AndroidOS.Agent、Android/SmsThief.LI!tr
  • ¥15 怀疑手机被监控,请问怎么解决和防止
  • ¥15 Qt下使用tcp获取数据的详细操作