摘要: 在写一些 Shell 测试用例时需要检测 url 的状态是否为 200,这时如果能只获取它的状态码是最理想的,cURL 可以很方便的实现。 -w 可以格式化输出 reponse 的返回结果。 12345678910 $ curl -w "%{http_code}" https://baidu.com 阅读全文
posted @ 2021-10-21 18:09 MR__Wang 阅读(2164) 评论(0) 推荐(0)