gpt4 book ai didi

http - 我无法从 curl 命令返回 get 200 响应

转载 作者:行者123 更新时间:2023-11-28 22:50:41 26 4
gpt4 key购买 nike

我有一个在我的 tomcat 服务器上运行的 Web 应用程序。在浏览器中输入 url 时,应用程序运行正常:

enter image description here

但是当我使用 curl 命令时:

curl  -IL http://localhost:8090/mysite

我得到以下信息:

HTTP/1.1 405 Method Not Allowed
Server: Apache-Coyote/1.1
Allow: GET
Content-Type: text/html;charset=utf-8
Content-Language: en
Content-Length: 1047
Date: Sun, 20 Nov 2016 11:41:27 GMT

我错过了什么?

最佳答案

尝试不使用“-I”——也许服务器不支持 HEAD(这将是一个严重的错误)。

关于http - 我无法从 curl 命令返回 get 200 响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40703678/

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