title: Put request using rest
body: <p>I have recently begun studyin the restlet interface. I don t know how to translate this method put using the restlet interface.</p>
  
  <pre><code>curl -X PUT  http://ip:port/testdb2
  </code></pre>
  
  <p>How can I translate this request? 
  So far , i have this code : </p>
  
  <pre><code>  ClientResource resource = new ClientResource("http://"+this.ip+":5984/"); 
  
  
          // Send the HTTP GET request 
          Representation r=resource.get(); 
  
          if (resource.getStatus().isSuccess()) { 
             resource.getResponseEntity().write(System.out); 
          }   
  
          resource.put(null);
  
          if (resource.getStatus().isSuccess()){ 
               resource.getResponseEntity().write(System.out); 
          } else 
              System.out.println("Error put");
  </code></pre>
  
  <p>How do I specify the new url?
  I need this request to create a couchDB database.</p>