Skip to content

Commit 029ca8b

Browse files
author
Jānis
committed
Added cookie which "mark" web notifications as read
1 parent c184541 commit 029ca8b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

jvpn.pl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@
124124
$ua->agent('Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:23.0) Gecko/20100101 Firefox/23.0');
125125
# emulate javascript java check result
126126
$ua->cookie_jar->set_cookie(0,"DSCheckBrowser","java","/",$dhost,$dport,1,1,60*5,0, ());
127+
$ua->cookie_jar->set_cookie(0,"DSSigninNotif","1","/",$dhost,$dport,1,1,60*5,0, ());
128+
$ua->cookie_jar->set_cookie(0,"path","/","/",$dhost,$dport,1,1,60*5,0, ());
127129
}
128130
else {
129131
$ua->agent('JVPN/Linux');
@@ -271,6 +273,7 @@
271273
}
272274
print "[done]\n";
273275
$ua->cookie_jar->set_cookie(0,"DSPREAUTH",$resp_lines[2],"/dana-na/",$dhost,$dport,1,1,60*5,0, ());
276+
$ua->cookie_jar->set_cookie(0,"DSSigninNotif","1","/dana-na/",$dhost,$dport,1,1,60*5,0, ());
274277
$res = $ua->get("https://$dhost:$dport/dana-na/auth/$durl/login.cgi?loginmode=mode_postAuth&postauth=$state_id");
275278
$response_body=$res->decoded_content;
276279
# send "setcookie" command as native client do

0 commit comments

Comments
 (0)