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

Add support for x-www-form-urlencoded #29

Open
shrsv opened this issue Aug 4, 2023 · 0 comments
Open

Add support for x-www-form-urlencoded #29

shrsv opened this issue Aug 4, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@shrsv
Copy link
Contributor

shrsv commented Aug 4, 2023

The following request cannot be made presently using Lama2:

curl --request POST \
  --url http://localhost:3000/oauth/token \
  --header 'Authorization: Basic YXBwbGljYXRpb246c2VjcmV0' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data grant_type=password \
  --data username=pedroetb \
  --data password=password

We have the MULTIPART keyword, but that is not exactly x-www-form-urlencoded. The difference between these two options can be found at SO

Maybe we could have something as simple as:

POST
FORM
http://xyz

a=b
c=d
@shrsv shrsv added the bug Something isn't working label Aug 4, 2023
@RijulTP RijulTP self-assigned this Aug 5, 2023
@shrsv shrsv mentioned this issue Oct 2, 2023
16 tasks
LinceMathew pushed a commit that referenced this issue Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants