usebruno / bruno

Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
https://www.usebruno.com/
MIT License
26.15k stars 1.2k forks source link

POST with application/x-www-form-urlencoded and json Body Not Working #1010

Open tkofford opened 11 months ago

tkofford commented 11 months ago

The following code does not work, but changing the "body: json" to "body: text" does.

meta { name: POST Test type: http seq: 45 }

post { url: https://some_url/authorize body: json auth: none }

headers { Content-Type: application/x-www-form-urlencoded }

body:json { { "clientId": "some-client-id", "clientSecret": "some-client-secret" } }

tkofford commented 9 months ago

Below are screen prints from what I was describing above. Looks like it "could" be an easy fix since it works with "TEXT" but not with "JSON" body type:

POST-json-Success-bruno POST-json-Error-bruno POST-json-Error-bruno-2