


#DOCUMENT INFO IN FOOTER INSTALL#
brew install curlĭone! You can now use curl. Now get the brew package for cURL using the following command. Type following command on command line terminal and press Enter key. The easiest way to install cURL is using Homebrew and for that reason, first, you need to set up homebrew on your mac machine. Open the Terminal application under Others category from the launchpad or, Press Command+Space and type Terminal and press enter/return key. So in order to get started, the first thing is to install cURL on macOS.
#DOCUMENT INFO IN FOOTER UPDATE#
In this article, we are going to use cURL commands on macOS to insert and update Header Footer objects inside MS Word document using a terminal application.

Note : when using cURL commands, ensure you do not put an extra space after the backslash \ else, the command will not be executed and errors will be displayed. In order to accomplish this requirement, we need to use -X PUT in cURL command where X needs to be in upper case.įor further information, please visit cURL tutorial. We may stumble upon a requirement to update existing data, so for that purpose, a PUT method is used. Please note that in order to post data, we use -d (or - data) parameter with the cURL command. Therefore in this article, we will use the same POST command to submit text content. The default request is a GET but if we have a requirement of using the same cURL command for submitting forms data, we need to use POST request. When using this command, we send a request and retrieve resources from a specific URL (a document in our case). The simplest and most common request/operation made using HTTP is to GET a URL. Nevertheless, it also facilitates us to test RESTfull APIs. With curl, you can download or upload data using one of the supported protocols including HTTP, HTTPS, SCP, SFTP, and FTP. In simple words, curl is a command-line utility for transferring data from or to a server designed to work without user interaction. It not just only allows us to make regular requests, but we can also post forms data, authenticate users, save responses to files and other related file manipulation operations. cURL commands are recommended to use APIs from command line terminals. CURL commands are an excellent way of transferring data with URLs.
