Skip to main content

Command Palette

Search for a command to run...

Getting Started with cURL

Published
1 min read
Getting Started with cURL
L

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 http or https

  • Mixing up GET and POST

  • Getting Scared by large JSON responses