title: RabbitMQ create user programmatically web
body: <p>I'm developing a web site which allows the administrator to create users on RabbitMQ.
  I checked the RabbitMQ api doc, and found an example to create user on windows/unix prompt. The command line seens like this:</p>
  
  <pre><code>curl -i -u ADMIN_USER: ADMIN_PASSW -H "content-type:application/json" -XPUT
  {"password":"PASSW_WRITTEN","tags":"administrator"}
  http://IP_ADRESS:PORT/api/users/USER_NAME
  </code></pre>
  
  <p>Here follows the link to the doc</p>
  
  <p><a href="http://hg.rabbitmq.com/rabbitmq-management/raw-file/rabbitmq_v3_4_1/priv/www/api/index.html" rel="nofollow">http://hg.rabbitmq.com/rabbitmq-management/raw-file/rabbitmq_v3_4_1/priv/www/api/index.html</a></p>
  
  <p>In the prompt, it works fine. But on a web site, I have no idea how to send this command.</p>
  
  <p><strong>Note</strong> I'm developping on Java Web with JSF, but any other web language example is welcome.</p>
  
  <p>Thanks for any help.</p>