test curl command code example
Example 1: how to hit rest api using curl
curl -I https://www.bookmarks.dev/api/public/bookmarks
Copy
Example 2: curl test https
curl --insecure -v https://www.google.com 2>&1 | awk 'BEGIN { cert=0 } /^\* Server certificate:/ { cert=1 } /^\*/ { if (cert) print }'