cURL command list:
1. curl http://example.com | GET request with `cURL`
2. curl http://example.com -v | Verbose GET request with `cURL`
3. curl http://admin:password@example.com/ -vvv | `cURL` Basic Auth login
4. curl -u admin:password http://example.com/ -vvv | Alternate `cURL` Basic Auth login
5. curl -u admin:password -L http://example.com/ | `cURL` Basic Auth login, follow redirection
6. curl -u admin:password ‘http://example.com/search.php?port_code=us' | `cURL` GET request with parameter
7. curl -d ‘username=admin&password=password’ -L http://example.com/login.php | POST request with `cURL`
8. curl -d ‘username=admin&password=password’ -L http://example.com/login.php -v | Debugging with `cURL`
9. curl -d ‘username=admin&password=password’ -L — cookie-jar /dev/null http://example.com/login.php -v | Cookie usage with `cURL` |
10. curl -d ‘username=admin&password=password’ -L — cookie-jar cookies.txt http://example.com/login.php | `cURL` with cookie file
11. curl -H ‘Content-Type: application/json’ -d ‘{ “username” : “admin”, “password” : “password” }’ | `cURL` specify content type
12. curl -X OPTIONS http://example.com/ -vv | `cURL` OPTIONS request
13. curl -X PUT -d @test.txt http://example.com/test.txt -vv | File upload with `cURL`
14. curl -X DELETE http://example.com/test.txt -vv | DELETE method with `cURL` |