gpt4 book ai didi

php nginx 服务器从 http 请求中得到奇怪的 header 和发布数据

转载 作者:可可西里 更新时间:2023-11-01 13:31:27 25 4
gpt4 key购买 nike

我们的应用服务器收到一些奇怪的请求,HTTP header 如下:

"Content-Type": "application/x-www-form-urlencoded",
"Content-Length": "3177",
"Host": "xxxxxxxxx",
"Accept": "*/*",
"Accept-Encoding": "gzip",
"Msisdn": "12345678",

并且使用 file_get_contents('php://input') 读取的 http 帖子正文开头为:ISDN: 12345678\r\n\r\n

Msisdn 实体 header 和 ISDN: 12345678\r\n\r\n 未由应用客户端发送。

我们的应用程序是用 cpp 编写的,使用 libcurl 来处理 http 请求。我真的不知道现在发生了什么。特别是帖子正文内容中的 ISDN: 12345678\r\n\r\n

欢迎所有建议。

最佳答案

客户端可以添加他们想要的任何 header ,代理服务器也可以。某些移动网络会为所有请求添加此 header 。

Detect an MSISDN (mobile number) with the browser

关于php nginx 服务器从 http 请求中得到奇怪的 header 和发布数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46501212/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com