-
|
I have a resource like this: {
"id": "foobar",
"images": {
"small": "...url...",
"medium": "...url...",
"large": "...url..."
}
}It would be nice to "capture" entire responses as files within chained requests. I would capture the image URLs and follow the first request with 3 more to get the images |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
|
Hi, GET https://foo/resource
HTTP 200
[Captures]
id: jsonpath "$.id"
image-small: jsonpath "$.images.small"
image-medium: jsonpath "$.images.medium"
image-large: jsonpath "$.images.large"
GET {{image-small}}
[Options]
output: {{id}}/small.jpg
HTTP 200
GET {{image-medium}}
[Options]
output: {{id}}/medium.jpg
HTTP 200
GET {{image-large}}
[Options]
output: {{id}}/large.jpg
HTTP 200(BTW, |
Beta Was this translation helpful? Give feedback.
-
|
Completed in #1326, |
Beta Was this translation helpful? Give feedback.
Completed in #1326,
--outputper request will be available in the next Hurl release (should be4.2.0)