title: Linux script with curl to check webservice status
body: <p>I have a license validation webservice provided at <a href="http://localhost/testing/validateLicence" rel="nofollow">http://localhost/testing/validateLicence</a></p>
  
  <p>I want to write a shell script in such way that I have to pass license key with webservice call . If webservice returns 200 OK then further steps in shell script are executed otherwise execution will be terminated</p>
  
  <p>Please help me in calling web service and comparing http response code in if/else block according to my requirement</p>