static S uploadFileToDiagramServer(byte[] data, S name) { print("Uploading " + l(data) + " bytes (" + quote(name) + ") to diagrams server."); S page = postPage("http://ai1.lol/1010474/raw/upload", "data", bytesToHex(data), "name", name, '_pass, muricaPassword()); print(page); Matcher m = Pattern.compile("/raw/([0-9]+)").matcher(page); if (!m.find()) fail("Diagram server said: " + page); ret "http://ai1.lol/1010474/raw/" + m.group(1); }
Began life as a copy of #1009027
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: | #1010476 | 
| Snippet name: | uploadFileToDiagramServer | 
| Eternal ID of this version: | #1010476/5 | 
| Text MD5: | 15e9fe5be94d5ca92820d3c8ad46ab2a | 
| Author: | stefan | 
| Category: | javax / networking | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2017-09-19 23:39:31 | 
| Source code size: | 458 bytes / 8 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 659 / 708 | 
| Version history: | 4 change(s) | 
| Referenced in: | [show references] |