curl -s -I -v -c /tmp/cookiec.txt "http://xxxx.cn/index.php?g=portal&m=index&a=update_rule_cache"
curl -s -I -v -b /tmp/cookiec.txt "http://xxxx.cn//index.php?g=&&g=rule&m=Index&a=auto_check_result&cache=false"
第一次是登录程序,获得并保存cookie,第二次就是使用保存的cookie访问需要验证登录的页面。
标签: curl
非特殊说明,本博所有文章均为博主原创。
如若转载,请注明出处:https://www.isres.com/linux/97.html