Skip to content

Instantly share code, notes, and snippets.

@diegoulloao
Last active April 20, 2019 02:36
Show Gist options
  • Save diegoulloao/7eaeed1cc2f85c899485b788df3bf178 to your computer and use it in GitHub Desktop.
Save diegoulloao/7eaeed1cc2f85c899485b788df3bf178 to your computer and use it in GitHub Desktop.
Obtiene status de request a URL vía http.
#!/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