bruno/packages/bruno-tests/collection/echo/echo multipart scripting.bru
lohit ed20eccc25
fix: multipart/form-data body interpolation (#3142)
* feat: updates

* feat: updates

* feat: updates

* feat: updates
2024-09-23 15:54:54 +05:30

23 lines
352 B
Plaintext

meta {
name: echo multipart via scripting
type: http
seq: 10
}
post {
url: {{echo-host}}
body: multipartForm
auth: none
}
assert {
res.body: contains form-data-value
}
script:pre-request {
const FormData = require("form-data");
const form = new FormData();
form.append('form-data-key', 'form-data-value');
req.setBody(form);
}