You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
某网站设置了14天的cookie有效期,但是在有效期到期前有set-cookie会更新有效期。模板里有参数可以在执行任务时暂时更新cookie,但是每次执行任务时使用的cookie仍然是旧的。
我尝试在har中用新变量替换旧变量(比如手动配置cookie1去拉取新的cookie2,用cookie2替换cookie1,方法参考此issue),但是har里替换的新变量并没有覆盖“我的任务”中的设置,这就导致每14天就要重新登录后台手动更新cookie。
我也尝试过账号密码登录,但是网站的验证码是加减法,ocr引擎识别起来有问题,所以想问问有没有什么方法(比如api这些)可以用har中更新的变量去替换“我的任务”中手动设置的变量呢?
Beta Was this translation helpful? Give feedback.
All reactions