I was successfully creating new users using curl and the following commands a few days ago, then after upgrading to lattest Orion code, it is no longer working
Here is the curl commands I am using...
To login and create cookie
curl -i -v -c curl_cookies.txt http://localhost:8080/login/form -d "username=admin&password=xxxxx&store=Orion" -H "Orion-Version:1" -H "Content-type:application/x-www-form-urlencoded"
then I use that cookie to login and create the user
curl -v -b curl_cookies.txt -H "Orion-Version: 1" -H "Content-Type: application/json" -d '{"UserName": "PatriciaE4022", "Password": "changeme123"}' http://localhost:8080/users
I get the following output
* Trying ::1...
* Connected to localhost (::1) port 8080 (#0)
> POST /users HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/7.43.0
> Accept: */*
> Cookie: JSESSIONID=12fwb542er5llxzly29szsg2d
> Orion-Version:1
> Content-Type:application/json
> Content-Length: 86
>
* upload completely sent off: 86 out of 86 bytes
< HTTP/1.1 405 HTTP method POST is not supported by this URL
< Cache-Control: must-revalidate,no-cache,no-store
< Content-Type: text/html;charset=ISO-8859-1
< Content-Length: 1344
< Server: Jetty(8.1.15.v20140411)
<
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 405 HTTP method POST is not supported by this URL</title>
</head>
<body>
<h2>HTTP ERROR: 405</h2>
<p>Problem accessing /users. Reason:
<pre> HTTP method POST is not supported by this URL</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>
</body>
</html>
* Connection #0 to host localhost left intact
Does anyone have an idea of what is going on?