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

5
LINES

< > BotCompany Repo | #1013952 // loadBinaryPageToFile_userAgent

JavaX fragment (include)

static void loadBinaryPageToFile_userAgent(S url, File f, S userAgent) ctex {
  URLConnection con = openConnection(new URL(url));
  con.setRequestProperty("User-Agent", userAgent);
  loadBinaryPageToFile_noHeaders(con, f);
}

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: #1013952
Snippet name: loadBinaryPageToFile_userAgent
Eternal ID of this version: #1013952/6
Text MD5: fa6a351683652382aa9b9045e86fdb67
Author: stefan
Category: javax / io
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-03-16 23:33:21
Source code size: 228 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 339 / 373
Version history: 5 change(s)
Referenced in: [show references]