Getting Started with cURL

Learning in public
What is cURL
It is command-line tool that is used send request to server from terminal. It is like texting server manually. It show techinal detials without hiding like browser.
Why programmers need cURL
We don’t to open browser to APIs
When we working on remote system without any GUI
When we want to some complex operation on the server response like automating requests
Debugging a sever response without hiding any technical data.
First request using cURL
Request:

Response:

Under The Hood:

Understanding request and response
Request : The message sent to the server
Response : The reply of sent request.
Common mistakes beginners make with cURL
Forgetting the
httporhttpsMixing up GET and POST
Getting Scared by large JSON responses



