bruno icon indicating copy to clipboard operation
bruno copied to clipboard

Multi-part form doesn't support variable values

Open williamscs opened this issue 1 year ago • 1 comments

I have checked the following:

  • [X] I use the newest version of bruno.
  • [X] I've searched existing issues and found nothing related to my issue.

Describe the bug

It looks like URL-encoded forms and JSON bodies support sending the value of a variable. When I use multi-part, however, it looks like it just sends the string literally (e.g. "{{variable}}" instead of rendering as "should_have_value")

.bru file to reproduce the bug

meta {
  name: Test Variable
  type: http
  seq: 3
}

post {
  url: https://echo.free.beeceptor.com/
  body: multipartForm
  auth: none
}

body:json {
  {
    "value": "{{variable}}"
  }
}

body:form-urlencoded {
  variable: {{variable}}
}

body:multipart-form {
  variable: {{variable}}
}
vars {
  variable: should_have_value
}

Screenshots/Live demo link

image

williamscs avatar May 10 '24 03:05 williamscs

Duplicate of #352 I already opened a PR for this #1217

Its-treason avatar May 10 '24 07:05 Its-treason

Duplicate of #352

lohxt1 avatar Jun 14 '24 11:06 lohxt1