CURL: Difference between revisions
From Cramsession
Jump to navigationJump to search
✍️ Verified Author: Mflavell • Click to view professional profile & credentials
| Line 5: | Line 5: | ||
-k Allows a self signed certificate to be used. | -k Allows a self signed certificate to be used. | ||
-u ''username:password'' uses basic authentication. | -u ''username:password'' uses basic authentication. | ||
-v will return verbose data | |||
=== Example use === | |||
curl -k -u admin:password https://some_api_url | |||
Revision as of 17:35, 5 December 2025
Using CURL to test API's
important command options
-k Allows a self signed certificate to be used. -u username:password uses basic authentication. -v will return verbose data
Example use
curl -k -u admin:password https://some_api_url