Skip to content

Commit

Permalink
docs(hurl): 📝 Add an example that outputs the response.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisguest75 committed May 25, 2024
1 parent 5da8db2 commit 22bdcc6
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions 79_hurl/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
vars
out
8 changes: 8 additions & 0 deletions 79_hurl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ NOTES:
## Install

```sh
# using 4.3.0
brew install hurl

hurl --help
Expand All @@ -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
Expand Down
15 changes: 15 additions & 0 deletions 79_hurl/google.hurl
Original file line number Diff line number Diff line change
@@ -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"



0 comments on commit 22bdcc6

Please sign in to comment.