cURLLLL
1. What is cURL (very simple terms)
cURL ek command-line tool hai
Iska kaam: internet se baat karna
Browser ki tarah request bhejta hai, par terminal se
Website, server, API — sabse baat kar sakta hai
2. Why programmers need cURL
Browser sirf GET request dikhata hai
cURL se tu:
GET
POST
PUT
DELETE
sab kar sakta hai
API test karne ke liye perfect
Frontend ke bina backend check kar sakta hai
Debugging ke time bohot kaam aata hai
3. Making your first request using cURL
Sabse basic example:
curl https://example.com
Iska matlab:
cURL bol raha hai:
“Is URL pe GET request bhejo”Response terminal me aa jaata hai (HTML / JSON)
Browser me URL likhne jaisa hi hai — bas terminal version.
3. Making your first request using cURL
Sabse basic example:
curl https://example.com
Iska matlab:
cURL bol raha hai:
“Is URL pe GET request bhejo”Response terminal me aa jaata hai (HTML / JSON)
Browser me URL likhne jaisa hi hai — bas terminal version.
5. Using cURL to talk to APIs
API ko data chahiye, page nahi.
Example GET API:
curl https://api.example.com/users
POST request example:
curl -X POST https://api.example.com/users
JSON bhejna ho:
curl -X POST \
-H "Content-Type: application/json" \
-d '{"name":"Sujal"}' \
https://api.example.com/users
👉 Yahan cURL act karta hai jaise:
frontend
Postman
ya koi app