Website is up and running

I want to check if web url is up and running through command or script. I will use that output in one job to make it fail or succeed. I searched wget curl but they have lot of description. I don't know much on networking side.
Kindly help on this.

You might try:

wget

It might be easier for you.