MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    Solved 我是实在没办法了。HTTP插件求助:上报POST无数据

    HTTP API和第三方SDK
    1
    2
    185
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • nicen.cn
      nicen.cn last edited by nicen.cn

      eb07e275-a4db-4e3f-8232-9709cc997e98-image.png

      这是Nginx的日志,并没有数据收到。
      官方HTTP插件插件提交的日志:

      101.89.34.154 - - [17/Jul/2021:11:37:40 +0800] "POST /test.php HTTP/1.1" 200 35 "-" "CQHttp/4.15.0"

      Onebot插件提交的日志:

      58.251.121.90 - - [17/Jul/2021:11:37:40 +0800] "POST /test.php HTTP/1.1" 200 35 "-" "Ktor client"

      1ebc8dbb-5af7-405f-ab6b-3f132c430dc9-image.png
      两款HTTP插件我都试了,都是这样。

      PHP $_POST,空;

      换无CDN HTTP的地址,仍然是这样,
      控制台无报错,并且可以正常响应返回的Json

      1 Reply Last reply Reply Quote 0
      • nicen.cn
        nicen.cn last edited by

        解决了 ,$_POST是接收不到的,php://input,用它

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact