转载请注明本文出处及链接
https://cn.x-cmd.com/pkg/curl/1min/
帮助我们改善文档
X-CMD 的文档内容来自命令的帮助文档、多个数据源以及文档库生成。文档中如果有错误或不明确的地方,欢迎通过这些方式进行告知~
扫描添加小助手完成验证加入微信群
A command line tool for transferring data with URL syntax
This tutorial demonstrates the basic features and usage of curl:
-o <file name> option to fetch webpage content and save it to a file.-O option to download Markdown files on the network. Compared with the -o option, this option can automatically get the file name.-I option to get the server response header-s and -w options together to get the httpcode of the server responseFurther reading:
x curl -o x-cmd.html https://www.x-cmd.com
x curl -O https://github.com/x-cmd/x-cmd/blob/main/README.md
x curl -I https://www.x-cmd.com | head -n 15
x curl -o /dev/null -s -w %{http_code} https://www.x-cmd.com
转载请注明本文出处及链接
帮助我们改善文档
X-CMD 的文档内容来自命令的帮助文档、多个数据源以及文档库生成。文档中如果有错误或不明确的地方,欢迎通过这些方式进行告知~
扫描添加小助手