question: 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 ; }
target:  Configures a HttpURLConnection to send a HTTP POST request for uploading the minidump. This also reads the content-type from the minidump file.