# Quick Tips,Shell

Published articles for Quick Tips,Shell.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## How to Add a Header to a curl Request

DevFeed: [How to Add a Header to a curl Request](<https://devfeed.tech/articles/how-to-add-a-header-to-a-curl-request-37476.md>)

Original publisher: [Read original article](<https://davidwalsh.name/curl-add-header>)

Author: David Walsh

Published: 2024-08-03T16:51:46Z

Content type: tutorial

Language: en

Sources: [David Walsh](<https://devfeed.tech/sources/david-walsh.md>)

Topics: [cURL](<https://devfeed.tech/topics/curl.md>), [HTTP](<https://devfeed.tech/topics/http.md>)

Tags: [apis](<https://devfeed.tech/tags/apis.md>), [curl](<https://devfeed.tech/tags/curl.md>), [headers](<https://devfeed.tech/tags/headers.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [http](<https://devfeed.tech/tags/http.md>), [quick-tips](<https://devfeed.tech/tags/quick-tips.md>), [quick-tips-shell](<https://devfeed.tech/tags/quick-tips-shell.md>), [request](<https://devfeed.tech/tags/request.md>), [shell](<https://devfeed.tech/tags/shell.md>)

### AI overview

A tutorial explaining how to add one or more HTTP headers to a curl request using the -H flag, with context about curl's use for downloading files and testing APIs.

### Source excerpt

curl is one of those great utilities that's been around seemingly forever and has endless use cases. These days I find myself using curl to batch download files and test APIs. Sometimes my testing leads me to using different HTTP headers in my requests. To add a header to a curl request, use the -H [...] The post How to Add a Header to a curl Request appeared first on David Walsh Blog.

## How to Set Date Time from Mac Command Line

DevFeed: [How to Set Date Time from Mac Command Line](<https://devfeed.tech/articles/how-to-set-date-time-from-mac-command-line-37488.md>)

Original publisher: [Read original article](<https://davidwalsh.name/mac-set-date>)

Author: David Walsh

Published: 2024-06-17T12:01:38Z

Content type: tutorial

Language: en

Sources: [David Walsh](<https://devfeed.tech/sources/david-walsh.md>)

Topics: [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Extension](<https://devfeed.tech/topics/extension.md>), [DateTime](<https://devfeed.tech/topics/datetime.md>)

Tags: [command-line](<https://devfeed.tech/tags/command-line.md>), [extension](<https://devfeed.tech/tags/extension.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [mac](<https://devfeed.tech/tags/mac.md>), [quick-tips](<https://devfeed.tech/tags/quick-tips.md>), [quick-tips-shell](<https://devfeed.tech/tags/quick-tips-shell.md>), [shell](<https://devfeed.tech/tags/shell.md>), [testing](<https://devfeed.tech/tags/testing.md>), [time](<https://devfeed.tech/tags/time.md>)

### AI overview

This tutorial explains how to change the current date on a Mac from the command line so developers can test hardcoded, date-based logic in web extensions that cannot be updated immediately.

### Source excerpt

Working on a web extension that ships to an app store and isn't immediately modifiable, like a website, can be difficult. Since you cannot immediately deploy updates, you sometimes need to bake in hardcoded date-based logic. Testing future dates can be difficult if you don't know how to quickly change the date on your local [...] The post How to Set Date Time from Mac Command Line appeared first on David Walsh Blog.