MiraiForum

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

    求助:HTTP/1.1 404 Not Found

    HTTP API和第三方SDK
    2
    3
    87
    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.
    • Y
      yucho last edited by yucho

      尝试在Termux上编写PHP脚本发送一条信息,但是用curl库请求http api接口时出现报错:HTTP/1.1 404 Not Found
      请求任何api都返回404,请求其他网站没有问题,用浏览器能打开链接。
      求大神帮忙!
      PHP版本:8.1.6
      curl扩展版本:7.84.10
      Mirai Console版本:2.12.0
      Mirai HTTP API版本:2.5.2
      测试
      报错

      1 Reply Last reply Reply Quote 0
      • MrXiaoM
        MrXiaoM 童心未泯 last edited by

        mirai-api-http 2.x 是用 /verify 不是用 /auth,详见迁移文档

        Y 1 Reply Last reply Reply Quote 0
        • Y
          yucho @MrXiaoM last edited by

          @MrXiaoM 没事了,我已经换成go-cqhttp了😂

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