1 | // retrieves url with HEAD. returns content length, |
2 | // or -1 in case of error. |
3 | static long httpSize(S url) {
|
4 | ret getURLSizeByHEAD(url); |
5 | } |
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: | 692 / 705 |
| Referenced in: | [show references] |