curl(1) -k -u <username> -T <filename> https://nextcloud.computecanada.ca/remote.php/webdav/
transfer a URL
-k, --insecure
       (SSL)  This option explicitly allows curl to perform "insecure" SSL connections and transfers. All
       SSL connections are attempted to be made secure by using the CA certificate  bundle  installed  by
       default. This makes all connections considered "insecure" fail unless -k, --insecure is used.

       See this online resource for further details: http://curl.haxx.se/docs/sslcerts.html
-u, --user <user:password>
       Specify the user name and password to use for server authentication.  Overrides  -n,  --netrc  and
       --netrc-optional.

       If you just give the user name (without entering a colon) curl will prompt for a password.

       If  you  use an SSPI-enabled curl binary and do NTLM authentication, you can force curl to pick up
       the user name and password from your environment by simply specifying a  single  colon  with  this
       option: "-u :".

       If this option is used several times, the last one will be used.
Before a command is executed, its input and output may be redirected using a special notation interpreted
by  the  shell.   Redirection  may  also  be used to open and close files for the current shell execution
environment.  The following redirection operators may precede or appear anywhere within a simple  command
or may follow a command.  Redirections are processed in the order they appear, from left to right.

Redirecting Input
    Redirection  of  input  causes  the  file  whose name results from the expansion of word to be opened for
    reading on file descriptor n, or the standard input (file descriptor 0) if n is not specified.

    The general format for redirecting input is:

           [n]<word
Before a command is executed, its input and output may be redirected using a special notation interpreted
by  the  shell.   Redirection  may  also  be used to open and close files for the current shell execution
environment.  The following redirection operators may precede or appear anywhere within a simple  command
or may follow a command.  Redirections are processed in the order they appear, from left to right.

Redirecting Output
    Redirection of output causes the file whose name results from the expansion of  word  to  be  opened  for
    writing  on  file descriptor n, or the standard output (file descriptor 1) if n is not specified.  If the
    file does not exist it is created; if it does exist it is truncated to zero size.

    The general format for redirecting output is:

           [n]>word

    If the redirection operator is >, and the noclobber option to the  set  builtin  has  been  enabled,  the
    redirection  will  fail if the file whose name results from the expansion of word exists and is a regular
    file.  If the redirection operator is >|, or the redirection operator is > and the  noclobber  option  to
    the  set  builtin  command  is  not  enabled, the redirection is attempted even if the file named by word
    exists.
source manpages: curl