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

15
LINES

< > BotCompany Repo | #1009522 // URLConnection Cookie Test

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (1691L/12K/40K).

!7

p {
  S _url = "http://tinybrain.de:8080/tb-int/get-transpiled.php?id=1001167&raw=1";
  URL url = new URL(_url);
  URLConnection con = url.openConnection();
  print(shorten(struct(loadPage(con, url))));
  for (int i = 0;; i++) {
    S key = con.getHeaderFieldKey(i);
    S value = con.getHeaderField(i);
    print("  " + key + " = " + value);
    if (key == null && value == null) break;
  }
  //con.setRequestProperty("Cookie: ");
}

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: #1009522
Snippet name: URLConnection Cookie Test
Eternal ID of this version: #1009522/7
Text MD5: 6c15b776901bc1806e4c4db00563508f
Transpilation MD5: dc9c0ad1b958ae1b6f9c5ef8bf6239a6
Author: stefan
Category: javax / networking
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-06 19:28:31
Source code size: 451 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 421 / 546
Version history: 6 change(s)
Referenced in: [show references]