+
95
-

wget 与curl 如何添加cookie打开访问url网址?

wget 与curl 如何添加COOKIE打开访问url网址?


网友回复

+
15
-

一、curl

curl -b 参数来携带COOKIE发送请求,例如:

$ curl -b 'foo1=bar;foo2=bar2' https://google.com

也可以先保存COOKIE,然后再发送COOKIE文件 $ curl -c COOKIEs.txt https://www.google.com

$ curl -b COOKIEs.txt htt...

点击查看剩余70%

我知道答案,我要回答