Comments (9)
@agoddard something to consider in implementing this would be its behavior with respect to the --redirect-ok flag. May require additional documentation (e.g. you cannot use --redirect-ok when doing --response-code 301) and the already noted caveats for --redirect-ok.
from http-checks.
Maybe it can be a single code or an array, and when it is an array the order matters, so then you can say "when I hit this redirecting URL with redirect-ok, I want to know that the place I end up gives me a 200" and then of providing an Array, then "when I hit this redirecting URL, I should get a 302 on the way to the 200" [302,200]
from http-checks.
@jspaleta I wonder if we could implement this one as a metric tag + metric threshold check?
from http-checks.
@agoddard is there an internal ref for this one?
from http-checks.
I'm wondering if --redirect-ok
and the proposed --reponse-code
implementation are necessarily mutually exclusive? What if I want to configure a check to expect a response-code from it's final destination, even if that's after following a redirect?
from http-checks.
Should --response-code
be --response-codes
(plural)? Then perhaps you could pair --redirect-ok
with --response-codes 301,202
, meaning any number of 301 redirects and a 202 response code are acceptable result for the check?
from http-checks.
Related Issues (13)
- Reduce redundant code
- proxy-entity-per-url HOT 2
- Client.Timeout results in outputting usage HOT 2
- http-check is broken, cannot handle any errors HOT 3
- Using http-checks to monitors sites with proxies
- Support client certificate authentication HOT 1
- `http-get` with `--url` returns an error, but exits 0 HOT 1
- Decouple check dependency on corev2 cipher suites HOT 1
- Asset definition in bonsai for 0.8.0 is empty
- Use jq or JMESPath for http-json
- Add unit tests for mTLS?
- Add support for POST w/data
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from http-checks.