Skip to content
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

If I post a data ,there is aways "Not Found". The post API is never triggerd #7

Closed
xubing opened this issue Jul 28, 2016 · 1 comment
Labels

Comments

@xubing
Copy link

xubing commented Jul 28, 2016

I use curl to simulate the post action, it return "Not Found",and it never step in PostBy() function.
`
curl -d "name=12" http://localhost:8080/users/

curl -d "name=12" http://localhost:8080/users/1/

`

@ghost ghost added the invalid label Jul 28, 2016
@ghost ghost closed this as completed Jul 28, 2016
@ghost
Copy link

ghost commented Jul 28, 2016

You should try with -f no with -d -d is for raw form data, -f is for form data which PostBy on the examples take with u.FormValue .

Just checked with postman also, if you want and url-encoded form data then use the u.PostValue("name") . This is not an API's problem, the code is used inside handlers it's your own responsibility

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant