cURL
A browser without UI :>>

what is cURL?
cURL is a small command line tool that allow your computer talk to server on the internet.
EX>> when we use our browser , it send request to server and then gives us response, cURL is the same thing but it works on terminal.
OK then who use it>
>>it is majorly use by programmers
To test APIs.
sending data to server.
Download files.
Debug Backend issues.
See server response.
EX>>curl https://www.google.com when we type this in terminal then it gives us raw data information.
understanding request and response>>
Request>
when we enter a website or fetch a data using cURL , our device sends a request to server.
>>a request contain
URL
method(GET,POST ,ETC)
Response>
when server send data back its a response. It may be a data , error ,or any confirmation message
How it works
t's like browser sends a request to you tube server and server responds with HTML,CSS,JS and our browser shows the page.
So how cURL talks to an API?
SO we need to understand what is an API?
An API is a doorway to a server, If you want user data api will get back it to you.
cURL talks to API by sending HTTP request and showing the HTTP response in your terminal .
You → Talk using cURL
cURL → Speaks HTTP language
API → Receives HTTP request
Server → Processes request
Response → Comes back to you .





