From 5893cbb113ade24152f04f61d9ee4cdb6f8c63fa Mon Sep 17 00:00:00 2001 From: Fazle Arefin Date: Fri, 13 Sep 2024 17:34:08 +1000 Subject: [PATCH] xh: update page (#13678) --- pages/common/xh.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pages/common/xh.md b/pages/common/xh.md index c033a43af8..3cc59cb6d0 100644 --- a/pages/common/xh.md +++ b/pages/common/xh.md @@ -1,6 +1,8 @@ # xh > Friendly and fast tool for sending HTTP requests. +> Note: `xh`, written in rust, serves as an effective drop-in replacement for `http`. +> See also: `http`, `curl`. > More information: . - Send a GET request: @@ -22,3 +24,7 @@ - Make a GET request and save the response body to a file: `xh --download {{httpbin.org/json}} --output {{path/to/file}}` + +- Show equivalent `curl` command (this will not send any request): + +`xh --{{curl|curl-long}} {{--follow --verbose get http://example.com user-agent:curl}}`