400 bad request on seemingly valid POST
I'm guessing this is a really stupid thing I missed or something like that, but I'm not sure what exactly it is.
I have this post handler:
Testing with curl:
8 Replies
Try designating the action method as POST and specify POST in your
curl
call
Also I don't think endpoint methods are supposed to be staticOh ok I'll try to fix that
Unknown User•6d ago
Message Not Public
Sign In & Join Server To View
That makes so much sense, I thought it would bind to the parameters just the same but makes complete sense it doesn't.
Unknown User•6d ago
Message Not Public
Sign In & Join Server To View
And yeah I know the password thing is dumb I'm just doing this for an example.
Unknown User•6d ago
Message Not Public
Sign In & Join Server To View
Worked well, thanks! I'll try to apply the other suggestions too.