curl
is a type of nice utilities that is been round seemingly ceaselessly and has limitless use circumstances. Today I discover myself utilizing curl
to batch obtain information and check APIs. Typically 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: utility/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]
.
The right way to Create a RetroPie on Raspberry Pi – Graphical Information
At this time we get to play superb video games on our tremendous powered recreation consoles, PCs, VR headsets, and even cellular units. Whereas I take pleasure in enjoying new video games today, I do lengthy for the retro gaming methods I had after I was a child: the unique Nintendo…
How I Stopped WordPress Remark Spam
I really like nearly each a part of being a tech blogger: studying, preaching, bantering, researching. The one half about running a blog that I completely detest: coping with SPAM feedback. For the previous two years, my weblog has registered 8,000+ SPAM feedback per day. PER DAY. Bloating my database…
MooTools: Set Model Per Media
I would wager one of the used MooTools strategies is the
setStyle()
technique, which lets you set CSS type declarations for a component. One of many limitations of MooTools’setStyle()
technique is that it units the precise type for all medias.MooTools PulseFade Plugin
I used to be just lately pushed to create a MooTools plugin that will take a component and fade it to a min from a max for a given variety of occasions. Here is the results of my Moo-foolery. The MooTools JavaScript Choices of the category embrace: min: (defaults to .5) the…