@ Override protected void addContent ( URLConnection con ) throws IOException { con . setDoOutput ( true ) ; con . addRequestProperty ( "Content-Type" , mime ) ; con . addRequestProperty ( "Content-Length" , String . valueOf ( content . length ) ) ; OutputStream os = con . getOutputStream ( ) ; writeContent ( os ) ; os . close ( ) ; }
Add the content to the URLConnection used .