这个响应在说什么
请求一个需要登录的接口:
返回的状态码是多少?
$ curl -si http://localhost:8080/need-auth | head -6
HTTP/1.1 401 Unauthorized
Server: nginx/1.24.0
Date: Thu, 05 Mar 2026 02:00:00 GMT
Content-Type: application/octet-stream
Content-Length: 24
Connection: keep-alive
请求一个需要登录的接口:
返回的状态码是多少?
$ curl -si http://localhost:8080/need-auth | head -6
HTTP/1.1 401 Unauthorized
Server: nginx/1.24.0
Date: Thu, 05 Mar 2026 02:00:00 GMT
Content-Type: application/octet-stream
Content-Length: 24
Connection: keep-alive
全部评论