Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support http endpoints (http status codes) #16

Open
DukeyToo opened this issue Jun 24, 2016 · 2 comments
Open

Support http endpoints (http status codes) #16

DukeyToo opened this issue Jun 24, 2016 · 2 comments

Comments

@DukeyToo
Copy link

Sometimes it is needed to not just reach the endpoint, but verify that something is responding normally there. My specific use case was that I had an nginx server on which I was testing the endpoints "successfully", but they were returning 502 Bad Gateway errors because the server that it was proxying was not yet up.

Can add an option to use curl or wget to do this.

@maxclaus
Copy link

If you are looking for an approach that does not depend on third party tools (curl, wget) and has cross platform support. Please take a look on this other tool https://github.com/maxcnunes/waitforit.

@vitalets
Copy link

vitalets commented Sep 5, 2020

I ended up with wait-for-cmd that can wait for any provided command.
Example with curl:

docker run --rm vitalets/wait-for-cmd 'curl -f https://example.com > /dev/null 2>&1'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants