Skip to main content

Command Palette

Search for a command to run...

Getting Started with cURL

Updated
1 min read
Getting Started with cURL

1.What is cURL

It is a command line tool which is used to transfer data and from the server.The most common use case is Api request.

2.Why programmers need cURL

mainly programmer use this to test the api end point .it is working as expect or not so that it can be fixed.

3.Making your first request using cURL

i tried curl https://anjanpajiyar.com command , this command returned me the html of the website.

cURL is made from four parts i.e endpoint,http method , header, body.The endpoint is the address(url ) which we are sending the request.the common http method are get ,post ,put and delete.the get http request is used to retrieve a resource from the server.the post http request is used send the resource to the server.the put http request is to used create or update the resource in the database of the server.the delete http request is used to delete a resource from the database of the server..the header contains the metadata about the request like the content-type and user-agent etc.the body is used with put and post as we are sending the information so .

More from this blog

technical

13 posts