![]() ![]() When you use curl -O (uppercase O), it will save the content in the file named ‘gettext.html’ itself in the local machine. Now the page gettext.html will be saved in the file named ‘mygettext.html’. -O (uppercase O) the filename in the URL will be taken and it will be used as the filename to store the result.-o (lowercase o) the result will be saved in the filename provided in the command line.We can save the result of the curl command to a file by using -o/-O options. This will also display some additional download statistics. To store the output in a file, you an redirect it as shown below. ![]() ![]() The following command will get the content of the URL and display it in the STDOUT (i.e on your terminal). This article provides 15 practical cURL usage examples. CURL is a software package which consists of command line tool and a library for transferring data using URL syntax.ĬURL supports various protocols like, DICT, FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, Telnet and TFTP. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |