Libraryless. Click here for Pure Java version (3893L/22K).
svoid doPostBinaryToFile(Map urlParameters, S url, File file) { doPostBinaryToFile(makePostData(urlParameters), url, file); } svoid doPostBinaryToFile(S urlParameters, S url, File file) ctex { URL _url = new URL(url); ping(); doPostBinaryToFile(urlParameters, _url.openConnection(), file); } svoid doPostBinaryToFile(String urlParameters, URLConnection conn, File file) throws IOException { // connect and do POST setHeaders(conn); conn.setDoOutput(true); OutputStreamWriter writer = new OutputStreamWriter(conn.getOutputStream()); writer.write(urlParameters); writer.flush(); try { loadBinaryPageToFile_noHeaders(conn, file); } finally { writer.close(); } }
Began life as a copy of #1005869
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
| Snippet ID: | #1032127 |
| Snippet name: | doPostBinaryToFile |
| Eternal ID of this version: | #1032127/3 |
| Text MD5: | 259df1bd73d4b97cf89d4bfb02c11dc8 |
| Transpilation MD5: | ee1db5ae9adcd366ae20a803a65a5e75 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-08-14 03:44:05 |
| Source code size: | 720 bytes / 25 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 418 / 557 |
| Version history: | 2 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |