Linux command
httpstat 命令
网络
复制后可按需替换文件名、目录或参数。
常用示例
Show HTTP request statistics
httpstat [https://example.com]
Follow redirects
httpstat -L [https://example.com]
Send a POST request
httpstat -X POST -d "[data]" [https://example.com/api]
Use custom headers
httpstat -H "Authorization: Bearer [token]" [https://example.com/api]
说明
httpstat visualizes curl statistics in a clear and beautiful way. It wraps around curl to capture and display the time spent in each phase of an HTTP request: DNS lookup, TCP connection, TLS handshake, server processing, and content transfer. This breakdown helps identify performance bottlenecks in web requests. Because httpstat is a wrapper around cURL, you can pass any cURL-supported option after the URL (except -w, -D, -o, -s, -S which are used internally).
FAQ
What is the httpstat command used for?
httpstat visualizes curl statistics in a clear and beautiful way. It wraps around curl to capture and display the time spent in each phase of an HTTP request: DNS lookup, TCP connection, TLS handshake, server processing, and content transfer. This breakdown helps identify performance bottlenecks in web requests. Because httpstat is a wrapper around cURL, you can pass any cURL-supported option after the URL (except -w, -D, -o, -s, -S which are used internally).
How do I run a basic httpstat example?
Run `httpstat [https://example.com]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more httpstat examples?
This page includes 4 examples for httpstat, plus related commands for nearby Linux tasks.