【发布时间】:2015-03-08 03:59:49
【问题描述】:
我有一个奇怪的问题,我试图发布大约 1GB 的数据,但是当我收到数据时,页面/api 会在没有发布数据的情况下执行。 $_POST 是空的,但 file_get_contents("php://input") 不是。我已将我的 php 内存限制设置为 -1 最大帖子大小为 1024M
有什么办法可以解决这个问题吗?这是我的卷曲信息:
Array
(
url => https://myapi.dev/endpoint.json
content_type => text/html
http_code => 200
header_size => 551
request_size => 489
filetime => -1
ssl_verify_result => 0
redirect_count => 1
total_time => 30.591151
namelookup_time => 0.000337
connect_time => 0.002641
pretransfer_time => 0.0056
size_upload => 736249473
size_download => 20
speed_download => 0
speed_upload => 24067400
download_content_length => 20
upload_content_length => 736249473
starttransfer_time => 0.049208
redirect_time => 15.965002
certinfo => Array
(
)
redirect_url =>
)
【问题讨论】:
-
你用的是什么网络服务器?
-
@LuckyBurger 我正在使用 apache
-
什么版本的php?
-
@LuckyBurger 发送服务器和接收服务器都使用
PHP 5.3.10-1ubuntu3.15 with Suhosin-Patch -
嗯嗯,这没有任何意义......我唯一能想到的是 content_type 是错误的
标签: php linux apache post curl