Curl 给出空洞回答的卷曲

Curl 给出空洞回答的卷曲,curl,logging,spring-boot-actuator,Curl,Logging,Spring Boot Actuator,我正在运行一个curl命令来禁用spring引导记录器 curl -H "Content-Type: application/json" --request POST -d '{}' http://10.97.65.59:9191/myApplication/actuator/loggers/com.path.to.the.class 在运行api之后,记录器被禁用,但我看不到任何内容,它只给出一个新的空新行,而不是事件状态代码。如何获取状态代码 在postman中运行时,

我正在运行一个curl命令来禁用spring引导记录器

curl -H "Content-Type: application/json" --request POST -d '{}' http://10.97.65.59:9191/myApplication/actuator/loggers/com.path.to.the.class
在运行api之后,记录器被禁用,但我看不到任何内容,它只给出一个新的空新行,而不是事件状态代码。如何获取状态代码


在postman中运行时,我得到
204:无内容
响应。

要获取状态行,您应该在请求中添加-i标志。要获取状态行,您应该在请求中添加-i标志。