1 | static void setHeaders(URLConnection con) throws IOException {
|
2 | ifndef NoComputerID |
3 | String computerID = getComputerID_quick(); |
4 | if (computerID != null) try {
|
5 | con.setRequestProperty("X-ComputerID", computerID);
|
6 | con.setRequestProperty("X-OS", System.getProperty("os.name") + " " + System.getProperty("os.version"));
|
7 | } catch (Throwable e) {
|
8 | //printShortException(e); |
9 | } |
10 | endifndef |
11 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1005868 |
| Snippet name: | setHeaders - add standard headers (X-Computer-ID, X-OS) to URLConnection |
| Eternal ID of this version: | #1005868/3 |
| Text MD5: | 0bdca52ae8bdd47ade1005be7e9cf193 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-12-03 13:27:18 |
| Source code size: | 409 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 984 / 1190 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |