-
Notifications
You must be signed in to change notification settings - Fork 701
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Problem to solve
I'm testing AWS endpoints (actually AWS Lambda functions), which sometimes desire JSON requests with an embedded base64 payload. Just writing out the request this way means that the .hurl file has some JSON with a big base64 blob in the middle, which isn't particularly easy to read.
Proposal
Since there's already filter support for base64Encode, it'd be great if I could use variable support in [Options] to encode my base64 and then embed it in the JSON as a template:
[Options]
variable: base64_data="test" base64Encode
```json
{
"records": [
{
"message": {{base64_data}}
}
]
}
```
to produce a request body of
{"records":[{"message":"dGVzdA=="}]}Additional context and resources
Tasks to complete
- ...
simonzkl
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request