6.2 C
New York
Wednesday, October 16, 2024

How you can Add a Header to a curl Request


curl is a type of nice utilities that is been round seemingly ceaselessly and has infinite use circumstances. As of late I discover myself utilizing curl to batch obtain recordsdata and check APIs. Generally my testing leads me to utilizing totally different HTTP headers in my requests.

So as to add a header to a curl request, use the -H flag:

curl -X 'GET' 
 'https://nft.api.cx.metamask.io/collections?chainId=1' 
 -H 'settle for: software/json' 
 -H 'Model: 1'

You possibly can add a number of headers with a number of -H makes use of. Header format is normally [key]: [value].

  • CSS Animations Between Media Queries

    CSS animations are proper up there with sliced bread. CSS animations are environment friendly as a result of they are often {hardware} accelerated, they require no JavaScript overhead, and they’re composed of little or no CSS code. Very often we add CSS transforms to components by way of CSS throughout…

  • Chris Coyier’s Favorite CodePen Demos

    David requested me if I would be up for a visitor publish selecting out a few of my favourite Pens from CodePen. A frightening activity! There are such a lot of! I managed to select a couple of although which have blown me away over the previous few months. Should you…


Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles