bash wget 保持会话等效卷曲

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15656595/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-18 05:00:23  来源:igfitidea点击:

wget keep session equivalence curl

bashcurlwget

提问by molwiko

I am creating a script which should be working also in MAC and I would like to know the equivalence of the following command line using curl command :

我正在创建一个脚本,它也应该在 MAC 中工作,我想知道使用 curl 命令的以下命令行的等效性:

wget --keep-session-cookies --load-cookies=cookies.txt --referer=website.com http://website.com/folder/$count

Thanks in advance.

提前致谢。

回答by kev

Try this:

尝试这个:

curl -b cookies.txt -c cookies.txt -e website.com http://website.com/folder/$count