curl
is a type of nice utilities that is been round seemingly endlessly and has infinite use circumstances. Today I discover myself utilizing curl
to batch obtain recordsdata and take a look at APIs. Typically my testing leads me to utilizing completely 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: utility/json' -H 'Model: 1'
You’ll be able to add a number of headers with a number of -H
makes use of. Header format is normally [key]: [value]
.
7 Important JavaScript Features
I bear in mind the early days of JavaScript the place you wanted a easy operate for nearly every thing as a result of the browser distributors applied options in a different way, and never simply edge options, primary options, like
addEventListener
andattachEvent
. Instances have modified however there are nonetheless a number of capabilities every developer ought to…
Utilizing Dotter for Type Submissions
One of many plugins I am most happy with is Dotter. Dotter permits you to create the everyday “Loading…” textual content with out utilizing animated photos. I am typically requested what a pattern utilization of Dotter could be; type submission create the proper scenario. The next…