1 | static S uploadFileToDiagramServer(byte[] data, S name) { |
2 | print("Uploading " + l(data) + " bytes (" + quote(name) + ") to diagrams server."); |
3 | S page = postPage("http://ai1.lol/1010474/raw/upload", "data", bytesToHex(data), "name", name, '_pass, muricaPassword()); |
4 | print(page); |
5 | Matcher m = Pattern.compile("/raw/([0-9]+)").matcher(page); |
6 | if (!m.find()) fail("Diagram server said: " + page); |
7 | ret "http://ai1.lol/1010474/raw/" + m.group(1); |
8 | } |
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: | 459 / 498 |
Version history: | 4 change(s) |
Referenced in: | [show references] |