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` |

Penetration Tester@⠎⠓⠁⠗⠍⠊⠞⠁⠝⠍⠁⠽

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Introduction to JavaScript: Basics

//platform.twitter.com/widgets.js from Twitter https://twitter.com/krushfitnessca

邹明潮 Notes: YDKJS Scope & Closure

Quokkajs — Rapid prototying playground

How to Remove Duplicates from a Sorted Array

Codedrop: Create, share and reuse your code

Swirling Water

LeetCode Algorithm Challenges: Convert Sorted Array to Binary Search Tree

Angular reactive form generation out of streams

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Tanmay Bhattacharjee

Tanmay Bhattacharjee

Penetration Tester@⠎⠓⠁⠗⠍⠊⠞⠁⠝⠍⠁⠽

More from Medium

Linux Fundamentals Part-3

Basics of firewall-cmd [Part-1]

Set up an AWS EC2 instance with port-forwarding and access your private home server from anywhere

Me casually connecting remotely to my private server

How to break into Cyber Security