Lama2 icon indicating copy to clipboard operation
Lama2 copied to clipboard

Add support for `x-www-form-urlencoded`

Open shrsv opened this issue 1 year ago • 0 comments

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 avatar Aug 04 '23 14:08 shrsv