mirror of
https://github.com/usebruno/bruno.git
synced 2025-01-25 07:08:45 +01:00
24 lines
320 B
Plaintext
24 lines
320 B
Plaintext
|
meta {
|
||
|
name: echo form-url-encoded
|
||
|
type: http
|
||
|
seq: 9
|
||
|
}
|
||
|
|
||
|
post {
|
||
|
url: {{echo-host}}
|
||
|
body: formUrlEncoded
|
||
|
auth: none
|
||
|
}
|
||
|
|
||
|
body:form-urlencoded {
|
||
|
form-data-key: {{form-data-key}}
|
||
|
}
|
||
|
|
||
|
script:pre-request {
|
||
|
bru.setVar('form-data-key', 'form-data-value');
|
||
|
}
|
||
|
|
||
|
assert {
|
||
|
res.body: eq form-data-key=form-data-value
|
||
|
}
|