From 22bdcc62ee1c7054d6bd4afd2545e4b1f7b83b7e Mon Sep 17 00:00:00 2001 From: Chris Guest Date: Sat, 25 May 2024 12:20:27 +0100 Subject: [PATCH] docs(hurl): :memo: Add an example that outputs the response. --- 79_hurl/.gitignore | 1 + 79_hurl/README.md | 8 ++++++++ 79_hurl/google.hurl | 15 +++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 79_hurl/google.hurl diff --git a/79_hurl/.gitignore b/79_hurl/.gitignore index b6bbd0f..40de887 100644 --- a/79_hurl/.gitignore +++ b/79_hurl/.gitignore @@ -1 +1,2 @@ vars +out diff --git a/79_hurl/README.md b/79_hurl/README.md index 9ad1299..698a6f3 100644 --- a/79_hurl/README.md +++ b/79_hurl/README.md @@ -14,6 +14,7 @@ NOTES: ## Install ```sh +# using 4.3.0 brew install hurl hurl --help @@ -23,6 +24,13 @@ hurl --help First you'll need to create the `hurl.vars` file from the template. +### Google + +```sh +mkdir -p ./out +hurl --very-verbose --test google.hurl +``` + ### Upload ```sh diff --git a/79_hurl/google.hurl b/79_hurl/google.hurl new file mode 100644 index 0000000..2ca3365 --- /dev/null +++ b/79_hurl/google.hurl @@ -0,0 +1,15 @@ +# Get google +GET http://www.google.com +Accept: application/json +Content-Type: application/json + +[Options] +delay: 3000 +output: ./out/google.html + +HTTP 200 +[Asserts] +header "Content-Type" == "text/html; charset=ISO-8859-1" + + +