Last active
April 20, 2019 02:36
-
-
Save diegoulloao/7eaeed1cc2f85c899485b788df3bf178 to your computer and use it in GitHub Desktop.
Obtiene status de request a URL vía http.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
STATUS_CODE=`curl -s -o /dev/null -I -w "%{http_code}" "[URL]"` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment