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

13
LINES

< > BotCompany Repo | #1005869 // doPostBinary

JavaX fragment (include)

 static byte[] doPostBinary(String urlParameters, URLConnection conn) throws IOException {
  // connect and do POST
  setHeaders(conn);
  conn.setDoOutput(true);

  OutputStreamWriter writer = new OutputStreamWriter(conn.getOutputStream());
  writer.write(urlParameters);
  writer.flush();

  byte[] contents = loadBinaryPage_noHeaders(conn);
  writer.close();
  return contents;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1005869
Snippet name: doPostBinary
Eternal ID of this version: #1005869/1
Text MD5: 87892b89f48db355485e67291f680a0d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-11 15:15:39
Source code size: 393 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 654 / 644
Referenced in: [show references]