HttpPost post = new HttpPost("https://rink.hockeyapp.net/api/2/apps");
MultipartEntity entity = new MultipartEntity(HttpMultipartMode.BROWSER_COMPATIBLE);
// Set headers and parameters
post.addHeader("X-HockeyAppToken", properties.get("hockeyAppToken"));
entity.addPart("ipa", new FileBody(
new File(appPath + "/" + properties.get("appName") + ".ipa"),
"application/zip"));
entity.addPart("dsym", new FileBody(
new File(appPath + "/" + properties.get("appName") + ".dSYM.zip"),
"application/zip"));
entity.addPart("notes",
new StringBody(properties.get("releaseNotes"),
"text/plain", Charset.forName("UTF-8")));