-
Notifications
You must be signed in to change notification settings - Fork 0
Hurl for Curl
Heath Brown edited this page Sep 7, 2024
·
6 revisions
- Requires Visual C++ Redistributable Version
- Download and install Visual C++
winget install hurl
cargo install hurl
hurl test.hurl
hurl test.hurl —-test
This checks that there is a 200 returned
#test.hurl
GET http://httpbin.org
HTTP 200
adds in authentication via HTTP headers
#test-auth.hurl
GET http://httpbing.org
X-HTTP-API-USER: user
X-HTTP-API-TOKEN: token
GET http://httpbing.org
[BasicAuth]
bob: secret
hurl ./ --variable user=user token=token
hurl ./ --variables-file hurl.env
export HURL_user=user
export HURL_token=token
#hurl.evn
user=user
token=token
#test-auth.hurl
GET http://httpbing.org
X-HTTP-API-USER: {{user}}
X-HTTP-API-TOKEN: {{token}}
GET http://httpbing.org
[BasicAuth]
{{user}}: {{secret}}
# Resources
- [Hurl](https://hurl.dev/#whats-hurl)