Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Orion » User API HTTP 405 error(I get HTTP 405 error when trying to create a new user)
User API HTTP 405 error [message #1706072] Fri, 21 August 2015 16:48
Billy Figueroa is currently offline Billy FigueroaFriend
Messages: 2
Registered: August 2015
Junior Member
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?
Previous Topic:Orion load times
Next Topic:Workspace naming
Goto Forum:
  


Current Time: Mon Jul 16 06:48:38 GMT 2018

Powered by FUDForum. Page generated in 0.02295 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top