curl
is a kind of nice utilities that is been round seemingly perpetually and has limitless use instances. Today I discover myself utilizing curl
to batch obtain information and take a look at 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: software/json' -H 'Model: 1'
You may add a number of headers with a number of -H
makes use of. Header format is normally [key]: [value]
.
Create Namespaced Lessons with MooTools
MooTools has at all times gotten a little bit of grief for not inherently utilizing and standardizing namespaced-based JavaScript lessons just like the Dojo Toolkit does. Many builders create their lessons as globals which is usually frowned up. I largely disagree with that stance, however every to their very own. In any occasion…
Serving Fonts from CDN
For optimum efficiency, everyone knows we should put our belongings on CDN (one other area). Together with these belongings are customized net fonts. Sadly customized net fonts by way of CDN (or any cross-domain font request) do not work in Firefox or Web Explorer (appropriately so, by spec) although…
CSS Columns
One main gripe that we have at all times had about CSS is that creating layouts appears to be tougher than it needs to be. We’ve got, after all, tailored and mastered the strategies for creating layouts, however there is not any shaking the sensation that there needs to be a…
Examine All/None Checkboxes Utilizing MooTools
There’s nothing worse than having to click on each checkbox in a listing. Why not permit customers to click on one merchandise and each checkbox turns into checked? Here is tips on how to do exactly that with MooTools 1.2. The XHTML Observe the picture with the ucuc ID — that…