curl hide output 1

curl hide output

curl --silent --output /dev/null --show-error --fail

Here is what the above code is Doing:
1. curl is the command-line tool for transferring data with URL syntax
2. –silent is to suppress the output
3. –output /dev/null is to send the output to /dev/null
4. –show-error is to show the error message if it fails
5. –fail is to fail silently if the HTTP server returns an error code
6. is the URL to check

Similar Posts