You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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/
`
The text was updated successfully, but these errors were encountered: