private boolean configureConnectionForHttpPost(HttpURLConnection connection) throws IOException {
  String boundary=readBoundary();
  if (boundary == null) {
    return false;
  }
  connection.setDoOutput(true);
  connection.setRequestProperty("Connection","Keep-Alive");
  connection.setRequestProperty("Content-Encoding","gzip");
  connection.setRequestProperty("Content-Type",String.format(CONTENT_TYPE_TMPL,boundary));
  return true;
}

private boolean configureConnectionForHttpPost ( HttpURLConnection connection ) throws IOException { String boundary = readBoundary ( ) ; if ( boundary == null ) { return false ; } connection . setDoOutput ( true ) ; connection . setRequestProperty ( "Connection" , "Keep-Alive" ) ; connection . setRequestProperty ( "Content-Encoding" , "gzip" ) ; connection . setRequestProperty ( "Content-Type" , String . format ( CONTENT_TYPE_TMPL , boundary ) ) ; return true ; }
configures a httpurlconnection to send a http post request for uploading the minidump . this also reads the content - type from the minidump file .
