Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • 2
    Checking status code makes probably more sense like the other proposals Commented Jan 6, 2016 at 17:45
  • I get "HTTP/1.1 302 Found". Commented May 8, 2017 at 23:34
  • 1
    This is great because it goes beyond a ping allowing me to check to see if my site is loading correctly (connection to mySQL etc.) and get more meaningful results. Commented Apr 9, 2019 at 20:47
  • What if the URL you want to test is a big file? like a pdf file or something? or a video stream which never ends? Commented Nov 13, 2021 at 5:52
  • 2
    @Freedo You can try the -I or --head flag which execute a HEAD request that fetches the response code and headers only. It may not work in all cases as severs can be configured to treat GET and HEAD requests differently. Commented Mar 12, 2022 at 4:18