official web sites:
Curl is an open source command line tool for transferring files with URL syntax, supporting FTP, FTPS, HTTP, HTTPS, GOPHER, TELNET, DICT, FILE and LDAP. Curl supports HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading, kerberos, HTTP form based upload, proxies, cookies, user+password authentication, file transfer resume, http proxy tunneling and a busload of other useful tricks. Openssl handles the encryption part of the transfer.
TO use config file ( _culrc ) the next line must be set in the batch file or scripting environment.
Since curl will only work with PEM formatted certificates, we need to convert the PKCS12 format certificate:
openssl pkcs12 -in [original certificate file] -clcerts -out [PEMfile]
Using config file:
curl https://this.secretwebsite.com/* -- will list everything recursively; lists just file/path names
curl https://this.secretwebsite.com -- is like doing an ls -l
curl -T mylocalfile.txt https://this.secretwebsite.com/
files we get back: mylocalfile.txt_201706.NO_ADD_REC
that's HHMMSS (maybe pacific timezone)
(HTTP) Specifies a custom request to use when com
municating with the HTTP server. The specified
request will be used instead of the standard GET.
Read the HTTP 1.1 specification for details and
_culrc (config file) contents:
#cookie send file (-b)
#cookie receive file (-c)
#redirect to different location (-L)
#certificate file and pw for authenication (-E)
#display progress bar (-#) instead of default statistics
#Write output to a local file named like the remote file we get.
#(Only the file part of the remote file is used, the path is cut off.)