Skip to content

Commit

Permalink
Added cookie which "mark" web notifications as read
Browse files Browse the repository at this point in the history
  • Loading branch information
Jānis committed Jan 27, 2017
1 parent c184541 commit 029ca8b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jvpn.pl
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@
$ua->agent('Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:23.0) Gecko/20100101 Firefox/23.0');
# emulate javascript java check result
$ua->cookie_jar->set_cookie(0,"DSCheckBrowser","java","/",$dhost,$dport,1,1,60*5,0, ());
$ua->cookie_jar->set_cookie(0,"DSSigninNotif","1","/",$dhost,$dport,1,1,60*5,0, ());
$ua->cookie_jar->set_cookie(0,"path","/","/",$dhost,$dport,1,1,60*5,0, ());
}
else {
$ua->agent('JVPN/Linux');
Expand Down Expand Up @@ -271,6 +273,7 @@
}
print "[done]\n";
$ua->cookie_jar->set_cookie(0,"DSPREAUTH",$resp_lines[2],"/dana-na/",$dhost,$dport,1,1,60*5,0, ());
$ua->cookie_jar->set_cookie(0,"DSSigninNotif","1","/dana-na/",$dhost,$dport,1,1,60*5,0, ());
$res = $ua->get("https://$dhost:$dport/dana-na/auth/$durl/login.cgi?loginmode=mode_postAuth&postauth=$state_id");
$response_body=$res->decoded_content;
# send "setcookie" command as native client do
Expand Down

0 comments on commit 029ca8b

Please sign in to comment.