捕获Curl输出到文件 [英] Capture Curl Output to a File
本文介绍了捕获Curl输出到文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个文本文档,其中包含一系列格式为
I have a text doc that contains a bunch of URLs in the format of
URL = "sitehere.com"
我想要做的是运行 curl -K myfile.txt
,并将响应的输出 Curl
返回到文件中。我如何做到这一点?
What I'm looking to do is to run curl -K myfile.txt
, and get the output of the response Curl
returns, into a file. How can I do this?
推荐答案
curl -K myconfig.txt -o output.txt
将接收的第一个输出写入您指定的文件一个旧的存在)。
Writes the first output received in the file you specify (overwrites if an old one exists).
curl -K myconfig.txt >> output.txt
将收到的所有输出附加到指定的文件。
Appends all output you receive to the specified file.
这篇关于捕获Curl输出到文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文