Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

16
LINES

< > BotCompany Repo | #1003107 // printAllCookies

JavaX fragment (include)

static void printAllCookies() {
  pcall {
    Iterable<S> it = cast getCookieHandler();
    if (it == null) { print("No cookie handler."); ret; }
    
    print("Cookies:");
    for (S name : it)
      print("  " + name + " = " + getCookie(name));
    print();
    
    print("Cookie Queue:");
      for (O cookie : (L) get(getCookieHandler(), "queue"))
        print("  " + call(cookie, "getHTTPHeader"));
    print();
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1003107
Snippet name: printAllCookies
Eternal ID of this version: #1003107/1
Text MD5: 3a5118d180de6a365f0f308ca8bdd43c
Author: stefan
Category: eleu / internet
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-04-30 22:52:02
Source code size: 440 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 592 / 568
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#3000382 - Answer for ferdie (>> t = 1, f = 0)