Task: Write a Linux Script Using curl to Check if a Web Service is Up
Task: Write a Linux Script Using curl to Check if a Web Service is Up: a task in Terminal-Lego-15k (Harbor dataset). Write a bash script that uses curl to check whether a web service is running and responding successfully. The script should check the HTTP status code returned by the service and…
The task
Write a bash script that uses `curl` to check whether a web service is running and responding successfully. The script should check the HTTP status code returned by the service and provide a clear true/false result that can be used in conditional (if-else) logic within a shell script.
Part of PrimeIntellect/Terminal-Lego-15k.