public ClientHttpRequest(URLConnection connection) throws IOException {
  this.connection=connection;
  connection.setDoOutput(true);
  connection.setDoInput(true);
  connection.setRequestProperty("Content-Type","multipart/form-data; boundary=" + boundary);
}

public ClientHttpRequest ( URLConnection connection ) throws IOException { this . connection = connection ; connection . setDoOutput ( true ) ; connection . setDoInput ( true ) ; connection . setRequestProperty ( "Content-Type" , "multipart/form-data; boundary=" + boundary ) ; }
creates a new multipart post http request on a freshly opened urlconnection
