php post输入数字,php://输入<> $_POST?

我正在尝试使用Firefox的内容安全策略.基本上它是网页的特殊标题,告诉浏览器哪些资源有效.

当某些资源因为违反策略而无效时,Firefox会以json格式向给定的URI发送报告.

这是一份典型的报道

array(1) {

["csp-report"]=>

array(4) {

["request"]=>

string(71) "GET http://example.com/?function=detail&id=565 HTTP/1.1"

["request-headers"]=>

string(494) "Host: example.com

User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:2.0b10pre) Gecko/20110115 Firefox/4.0b10pre

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Accept-Language: es-ar,en-us;q=0.8,es;q=0.5,en;q=0.3

Accept-Encoding: gzip, deflate

Accept-Charset: UTF-8,*

Keep-Alive: 115

Connection: keep-alive

Referer: http://example.com/index.php?function=search&query=Pata+de+cambio+

Cookie: the cookie

"

["blocked-uri"]=>

string(4) "self"

["violated-directive"]=>

string(30) "inline script base restriction"

}

}

内容类型是application / json;字符集= UTF-8

现在.我希望在$_POST中可以使用REQUEST_METHOD == POST但是post总是空的.

我可以从php://输入访问它,但问题是:为什么$_POST中的请求不可用?

我甚至无法使用filter_input,$_REQUEST为空…

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值