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).

1  
!7
2  
3  
p {
4  
  S _url = "http://tinybrain.de:8080/tb-int/get-transpiled.php?id=1001167&raw=1";
5  
  URL url = new URL(_url);
6  
  URLConnection con = url.openConnection();
7  
  print(shorten(struct(loadPage(con, url))));
8  
  for (int i = 0;; i++) {
9  
    S key = con.getHeaderFieldKey(i);
10  
    S value = con.getHeaderField(i);
11  
    print("  " + key + " = " + value);
12  
    if (key == null && value == null) break;
13  
  }
14  
  //con.setRequestProperty("Cookie: ");
15  
}

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: 504 / 658
Version history: 6 change(s)
Referenced in: [show references]