-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems running this example #1
Comments
I have just typed the same curl request and it works:
|
yes, using curl works fine. I downloaded the code and run ex02 and that does work in a browser so I will look for differences in the code and report back. |
I did find some differences in the code - dumb typos on my part. Looking at views/todo/_todo.gson I have the same as your example code. So no idea what is happening. |
and having restarted app again, it now works. I did change logging but that would not have made a difference. So issue closed. |
Hi Alvarao!
I wanted to try your example from greach2014. I downloaded it. Started it with STS without any problems. I was hoping to be able to authenticate with curl:
C:\Users\atw1t1r5>curl -i -H "Content-Type: application/json" -X POST -d '{"username":"jimi","password":"jimispassword"}' http://localhost:8080/restful-grails-springsecurity-greach2014/api/login
HTTP/1.1 400 Bad Request
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Sat, 16 May 2015 18:51:40 GMT
But I got a 400 Bad Request. I didn't change anything. Did I use the curl command wrong. I would be great if you could give me a hint.
Thanks a lot.
Thomas
The text was updated successfully, but these errors were encountered: