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

5
LINES

< > BotCompany Repo | #1004757 // httpSize - get size of a file behind a URL [=getURLSizeByHEAD]

JavaX fragment (include)

// retrieves url with HEAD. returns content length,
// or -1 in case of error.
static long httpSize(S url) {
  ret getURLSizeByHEAD(url);
}

Author comment

Began life as a copy of #1002941

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1004757
Snippet name: httpSize - get size of a file behind a URL [=getURLSizeByHEAD]
Eternal ID of this version: #1004757/1
Text MD5: a9f3b098471b2543b19afad98adea760
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-08-29 01:58:01
Source code size: 145 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 481 / 493
Referenced in: [show references]