1 | sbool loadPageWithUserAgent_verbose; |
2 | |
3 | static S loadPageWithUserAgent(S url, S userAgent) ctex { |
4 | URL tURL = new URL(url); |
5 | URLConnection conn = tURL.openConnection(); |
6 | conn.setRequestProperty("User-Agent", userAgent); |
7 | loadPage_anonymous = true; |
8 | if (loadPageWithUserAgent_verbose) |
9 | print("Loading as " + userAgent + ": " + hideCredentials(url)); |
10 | ret loadPage(conn, tURL); |
11 | } |
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, ekrmjmnbrukm, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004102 |
Snippet name: | loadPageWithUserAgent |
Eternal ID of this version: | #1004102/3 |
Text MD5: | d9d18ad36739c2752d66276dc72333ef |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-09-23 14:00:37 |
Source code size: | 394 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 563 / 607 |
Version history: | 2 change(s) |
Referenced in: | [show references] |