How to check for a HTTP response code
for information on the arguemnts on curl check out this page.
Note that you can combine singe stroke args like -k and -s for example to -ks, so -ksLo are four args
Replace $yourURI with a Resource path expected to yield a 200 OK response, or change the if to the expected response.