Cookies with curl the command line tool

w

Cookies with curl the command line tool

https://curl.haxx.se/docs/http-cookies.html

curl has a full cookie "engine" built in. If you just activate it, you can have curl receive and send cookies exactly as mandated in the specs.

Command line options:

-b, --cookie

tell curl a file to read cookies from and start the cookie engine, or if it isn't a file it will pass on the given string. -b name=var works and so does -b cookiefile.

-j, --junk-session-cookies

when used in combination with -b, it will skip all "session cookies" on load so as to appear to start a new cookie session.

-c, --cookie-jar

tell curl to start the cookie engine and write cookies to the given file after the request(s)

上一篇:Spark是一种分布式的计算方案


下一篇:基于jquery fly插件实现加入购物车抛物线动画效果,jquery.fly.js