![curl mac command line options curl mac command line options](https://imgs.developpaper.com/imgs/3617527108-5d3918d2c0452_articlex.png)
It is expected to be the data previously received from the server in a " Set-Cookie:" line. ( HTTP) Pass the data to the HTTP server as a cookie. If the need should arise when uploading from stdin, the upload operation fails. Note that using -anyauth is not recommended if you do uploads from stdin since it may require data to be sent twice and then the client must be able to rewind. This is used instead of setting a specific authentication method, which you can do with -basic, -digest, -ntlm, and -negotiate. This is done by first making a request and checking the response-headers, thus possibly inducing a network round-trip. ( HTTP) Tells curl to figure out authentication method by itself, and use the most secure method the remote site claims it supports.
![curl mac command line options curl mac command line options](https://i.stack.imgur.com/xPUBf.png)
If this option is set more than once, the last one will be the one that's used.
![curl mac command line options curl mac command line options](https://www.booleanworld.com/wp-content/uploads/2018/12/curl-head.png)
This value can also be set with the -H/ -header option. To encode blanks in the string, surround the string with single quote marks. Some CGI fail if the agent string is not set to " Mozilla/4.0". ( HTTP) Specify the User-Agent string to send to the HTTP server. Note that this option is ignored by some SSH servers, including OpenSSH. If the file doesn't exist, it is created. ( FTP/ SFTP) When used in an FTP upload, this will tell curl to append to the target file instead of overwriting it.