[rabbitmq-discuss] Http API: new user
SAG - Jonathan Andrés
jandres at omie.es
Mon Aug 26 12:28:24 BST 2013
Thank you very much!
curl -i -v -u guest:guest -H ""content-type:application/json"" -XPUT -d"{""password"":""secret"",""tags"":""administrator""}" http://localhost:15672/api/users/newUser
It works!
Now I'll try with the Java + Spring project.
-----Mensaje original-----
De: Matthias Radestock [mailto:matthias at rabbitmq.com]
Enviado el: lunes, 26 de agosto de 2013 13:20
Para: SAG - Jonathan Andrés
CC: Discussions about RabbitMQ
Asunto: Re: [rabbitmq-discuss] Http API: new user
On 26/08/13 12:10, SAG - Jonathan Andrés wrote:
> I'm using CURL/7.31.0 on windows
...in which case the problem may well be Windows shell escaping, which is different than under Unix.
I am no expert in Windows scripting, but https://www.rabbitmq.com/ha.html has some example of unix vs windows rabbitmqctl commands which may be a useful guide for constructing a curl command line. In particular note that instead of surrounding literally quoted text with '', it is surrounded with "" and all occurrences of "
are doubled ("").
Matthias.
More information about the rabbitmq-discuss
mailing list