Upload Files Using CURL π¨
Table of Contents
CURL is a command line tool to transfer data to or from a server, using any of the supported protocols (HTTP, FTP, IMAP, POP3, SCP, SFTP, SMTP, TFTP, TELNET, LDAP or FILE).
Uploading a File:
To upload a file using CURL we use -F or β form (Specify HTTP multipart POST data).
Syntax:
$ curl -F/--form 'file=@PATH' https://example.com/
Example:
$ curl -F/--form 'test=@/mavi/test.txt' https://example.com/
Thanks for reading this post, if you like my work you can support by buying me a pizza. π
Read other posts