{"id":23710,"date":"2024-01-25T10:36:36","date_gmt":"2024-01-25T10:36:36","guid":{"rendered":"https:\/\/linuxways.net\/?p=23710"},"modified":"2024-01-25T10:44:26","modified_gmt":"2024-01-25T10:44:26","slug":"install-curl-debian-12","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/debian\/install-curl-debian-12\/","title":{"rendered":"How to Install curl on Debian 12"},"content":{"rendered":"<p>In some cases, users might want to send a quick<strong> HTML request<\/strong> from the <strong>Command Line Interface (CLI)<\/strong>, and for that purpose, Debian has multiple tools such as wget and <strong>cur<\/strong>l. The <strong>curl (Client URL)<\/strong> is a versatile command line utility that uses the <strong>Libcurl<\/strong> library to allow users to exchange data between devices and servers through the terminal using any of the supported protocols, such as <strong>FTP, IMAP, HTTP, HTTPS, SMTP<\/strong>, and more. Users specify the URL using the <strong>curl utility<\/strong> to perform the actions accordingly and can add authentication credentials, set proxies and cookies, upload and download files, while sending a request through <strong>curl<\/strong>. Further, they can also use <strong>curl <\/strong>to troubleshoot the connection issues on your system.<\/p>\n<p>In this guide, we will discuss:<\/p>\n<ul>\n<li><a href=\"#post-23710-fudtaog6b4kv\"><strong>How to Install curl on Debian 12<\/strong><\/a><\/li>\n<li><a href=\"#post-23710-50j98fip0idx\"><strong>What is the Syntax of Using curl on Debian 12<\/strong><\/a><\/li>\n<li><a href=\"#post-23710-3dnxply4sw24\"><strong>How to Use curl on Debian 12<\/strong><\/a><\/li>\n<li><a href=\"#post-23710-ije9jrimxkrc\"><strong>How to Remove curl from Debian 12<\/strong><\/a><\/li>\n<li><a href=\"#post-23710-xs73fbz3mb1z\"><strong>Conclusion<\/strong><\/a><\/li>\n<\/ul>\n<h2><a id=\"post-23710-fudtaog6b4kv\"><\/a><strong>How to Install curl on Debian 12<\/strong><\/h2>\n<p>The first thing required for the installation of <strong>curl<\/strong> is to update the system repository using the below-given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt update <span class=\"sy0\">&amp;&amp;<\/span> <span class=\"kw2\">sudo<\/span> apt upgrade<\/div><\/div>\n<p>Once the repository is successfully updated, execute the following command to install the<strong> curl<\/strong> command line utility on Debian 12 from the default repository:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> curl <span class=\"re5\">-y<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"864\" height=\"276\" class=\"wp-image-23720\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-1.png 864w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-1-300x96.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-1-768x245.png 768w\" sizes=\"auto, (max-width: 864px) 100vw, 864px\" \/><\/p>\n<p>Once the installation is completed, verify it by running the version command on your terminal; it will display the key information about the version of the <strong>curl<\/strong> with all the supported protocols:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">curl <span class=\"re5\">--version<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"887\" height=\"224\" class=\"wp-image-23721\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-2.png 887w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-2-300x76.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-2-768x194.png 768w\" sizes=\"auto, (max-width: 887px) 100vw, 887px\" \/><\/p>\n<h2><a id=\"post-23710-50j98fip0idx\"><\/a><strong>What is the Syntax of Using curl on Debian 12?<\/strong><\/h2>\n<p>The <strong>curl<\/strong> can be used directly on the command line, or you can include it in the script. It is followed by the URL that provides the data. The general syntax for using the <strong>curl <\/strong>utility on Debian 12 is written below:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">curl <span class=\"br0\">&#91;<\/span>URL<span class=\"br0\">&#93;<\/span><\/div><\/div>\n<p>You can also customize the <strong>curl command<\/strong> by including the various options in the general syntax:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">curl <span class=\"br0\">&#91;<\/span>Options<span class=\"br0\">&#93;<\/span> <span class=\"br0\">&#91;<\/span>URL<span class=\"br0\">&#93;<\/span><\/div><\/div>\n<p>The number of options provided by the <strong>curl utility <\/strong>can be checked by executing the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">curl <span class=\"re5\">--help<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"743\" height=\"385\" class=\"wp-image-23725\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-3.png 743w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-3-300x155.png 300w\" sizes=\"auto, (max-width: 743px) 100vw, 743px\" \/><\/p>\n<p>Or you can open <strong>curl command <\/strong>manual on Debian by using the following command to view all options:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">man<\/span> curl<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"789\" height=\"451\" class=\"wp-image-23728\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-4.png 789w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-4-300x171.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-4-768x439.png 768w\" sizes=\"auto, (max-width: 789px) 100vw, 789px\" \/><\/p>\n<h2><a id=\"post-23710-3dnxply4sw24\"><\/a><strong>How to Use curl on Debian 12<\/strong><\/h2>\n<p>You can use the <strong>curl command <\/strong>on Debian 12 to:<\/p>\n<ul>\n<li><a href=\"#post-23710-vqx58duolwv3\"><strong>Fetch Web Page Information<\/strong><\/a><\/li>\n<li><a href=\"#post-23710-7ey9xp4rdu3u\"><strong>Display Header of URL<\/strong><\/a><\/li>\n<li><a href=\"#post-23710-pdbma8udarqf\"><strong>Download Files from the Internet<\/strong><\/a><\/li>\n<li><a href=\"#post-23710-tofpdqucchy1\"><strong>Add GPG Key<\/strong><\/a><\/li>\n<li><a href=\"#post-23710-ot2f1gfgeuce\"><strong>Resume a Download<\/strong><\/a><\/li>\n<li><a href=\"#post-23710-8zjffz7rayib\"><strong>Specify a Maximum Transfer Rate<\/strong><\/a><\/li>\n<li><a href=\"#post-23710-p5qc5x3i2wg5\"><strong>Test if a Website Supports HTTP\/2<\/strong><\/a><\/li>\n<\/ul>\n<h3><a id=\"post-23710-vqx58duolwv3\"><\/a><strong>1: Using curl on Debian 12 to Fetch Web Page Information<\/strong><\/h3>\n<p>If you use the <strong>curl comman<\/strong>d followed by the URL, it will provide the HTML content of the provided URL. For example, I am executing the <strong>curl command<\/strong> to fetch the web information of Google:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">curl https:<span class=\"sy0\">\/\/<\/span>google.com<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"807\" height=\"187\" class=\"wp-image-23733\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-5.png 807w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-5-300x70.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-5-768x178.png 768w\" sizes=\"auto, (max-width: 807px) 100vw, 807px\" \/><\/p>\n<h3><a id=\"post-23710-7ey9xp4rdu3u\"><\/a><strong>2: Using curl on Debian 12 to Display Headers of URL<\/strong><\/h3>\n<p>If you use the <strong>curl command<\/strong> with the <strong>-I <\/strong>flag, it will return the HTTP headers of the entered URL, excluding the content of the URL:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">curl <span class=\"re5\">-I<\/span> https:<span class=\"sy0\">\/\/<\/span>www.google.com<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"879\" height=\"484\" class=\"wp-image-23742\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-6.png 879w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-6-300x165.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-6-768x423.png 768w\" sizes=\"auto, (max-width: 879px) 100vw, 879px\" \/><\/p>\n<h3><a id=\"post-23710-pdbma8udarqf\"><\/a><strong>3: Using curl on Debian 12 to Download Files From the Internet<\/strong><\/h3>\n<p>You can use a <strong>curl command <\/strong>to download a file to your system directly from the website. You can use<strong> curl<\/strong> on Debian 12 to download:<\/p>\n<ul>\n<li><a href=\"#post-23710-8xynbnl54tf5\"><strong>Single File from the Internet<\/strong><\/a><\/li>\n<li><a href=\"#post-23710-44ekm2ilwguk\"><strong>Multiple Files from the Internet <\/strong><\/a><\/li>\n<\/ul>\n<h3><a id=\"post-23710-8xynbnl54tf5\"><\/a><strong>1: Download a Single File From the Internet on Debian 12 Using curl<\/strong><\/h3>\n<p>If you want to download a single file from the Internet using <strong>curl command<\/strong> on Debian 12, use the below-given syntax:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">curl <span class=\"re5\">-o<\/span> <span class=\"br0\">&#91;<\/span><span class=\"kw2\">file<\/span> name<span class=\"br0\">&#93;<\/span> <span class=\"br0\">&#91;<\/span>URL<span class=\"br0\">&#93;<\/span><\/div><\/div>\n<p><strong>OR<\/strong><\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">curl <span class=\"re5\">-O<\/span> <span class=\"br0\">&#91;<\/span>URL<span class=\"br0\">&#93;<\/span><\/div><\/div>\n<p>In the above syntax:<\/p>\n<p><strong>-o <\/strong>flag downloads the file to the system with the provided name.<\/p>\n<p><strong>-O<\/strong> flag downloads the file with the same name as in the URL.<\/p>\n<p>For example, I am downloading the .deb file of<strong> Google Chrome<\/strong> using the<strong> -O<\/strong> flag with the <strong>curl<\/strong>. It will download the file with the same name as it is in the URL:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">curl <span class=\"re5\">-O<\/span> https:<span class=\"sy0\">\/\/<\/span>dl.google.com<span class=\"sy0\">\/<\/span>linux<span class=\"sy0\">\/<\/span>direct<span class=\"sy0\">\/<\/span>google-chrome-stable_current_amd64.deb<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"681\" height=\"298\" class=\"wp-image-23747\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-7.png 681w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-7-300x131.png 300w\" sizes=\"auto, (max-width: 681px) 100vw, 681px\" \/><\/p>\n<p>If you want to customize the name of the file, then use the<strong> -o<\/strong> flag followed by the file name and URL. In the below-given command, I have downloaded the <strong>.deb<\/strong> file of <strong>Google Chrome <\/strong>and saved it on my Debian 12 with the name of the <strong>google-chrome.deb<\/strong>:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">curl <span class=\"re5\">-o<\/span> google-chrome.deb https:<span class=\"sy0\">\/\/<\/span>dl.google.com<span class=\"sy0\">\/<\/span>linux<span class=\"sy0\">\/<\/span>direct<span class=\"sy0\">\/<\/span>google-chrome-stable_current_amd64.deb<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"683\" height=\"329\" class=\"wp-image-23753\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-8.png 683w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-8-300x145.png 300w\" sizes=\"auto, (max-width: 683px) 100vw, 683px\" \/><\/p>\n<p>You can verify the successful installation of the file on Debian by using the below-given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">ls<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"646\" height=\"126\" class=\"wp-image-23758\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-9.png 646w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-9-300x59.png 300w\" sizes=\"auto, (max-width: 646px) 100vw, 646px\" \/><\/p>\n<h3><a id=\"post-23710-44ekm2ilwguk\"><\/a><strong>2: Download Multiple Files From the Internet on Debian 12 Using curl<\/strong><\/h3>\n<p>You can also use the <strong>curl command <\/strong>on Debian to download multiple files; the basic syntax of using the <strong>curl<\/strong> command to download two files is written below:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">curl <span class=\"re5\">-O<\/span> url1 <span class=\"re5\">-O<\/span> url2<\/div><\/div>\n<p>In the below example command, I have downloaded the two files from the internet. One is the .deb file of Google Chrome and the other is the .deb file of the team viewer.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">curl <span class=\"re5\">-O<\/span> https:<span class=\"sy0\">\/\/<\/span>dl.google.com<span class=\"sy0\">\/<\/span>linux<span class=\"sy0\">\/<\/span>direct<span class=\"sy0\">\/<\/span>google-chrome-stable_current_amd64.deb <span class=\"re5\">-O<\/span> https:<span class=\"sy0\">\/\/<\/span>download.teamviewer.com<span class=\"sy0\">\/<\/span>download<span class=\"sy0\">\/<\/span>linux<span class=\"sy0\">\/<\/span>teamviewer_amd64.deb<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"781\" height=\"178\" class=\"wp-image-23765\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-10.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-10.png 781w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-10-300x68.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-10-768x175.png 768w\" sizes=\"auto, (max-width: 781px) 100vw, 781px\" \/><\/p>\n<p>Verify the installation using the <strong>ls<\/strong> command:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"786\" height=\"164\" class=\"wp-image-23771\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-11.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-11.png 786w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-11-300x63.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-11-768x160.png 768w\" sizes=\"auto, (max-width: 786px) 100vw, 786px\" \/><\/p>\n<p>Another method to download multiple files on the Debian 12 using<strong> curl command <\/strong>is to list all the URLs in a single file. To do so, create a file, paste the URLs in the created file, and save it using <strong>CTRL+X<\/strong>, add<strong> Y<\/strong> and press <strong>Enter<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"780\" height=\"237\" class=\"wp-image-23773\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-12.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-12.png 780w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-12-300x91.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-12-768x233.png 768w\" sizes=\"auto, (max-width: 780px) 100vw, 780px\" \/><\/p>\n<p>After that, use the below-given syntax to download multiple files from the URL using the curl:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw1\">while<\/span> <span class=\"kw2\">read<\/span> <span class=\"re5\">-r<\/span> line; <span class=\"kw1\">do<\/span> curl <span class=\"re5\">-O<\/span> <span class=\"re1\">$line<\/span>; <span class=\"kw1\">done<\/span> <span class=\"sy0\">&lt;<\/span> <span class=\"re1\">$HOME<\/span><span class=\"sy0\">\/&lt;<\/span>file_name<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p>Here, I am downloading all the files listed in the<strong> file-with-url.tex<\/strong>t:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw1\">while<\/span> <span class=\"kw2\">read<\/span> <span class=\"re5\">-r<\/span> line; <span class=\"kw1\">do<\/span> curl <span class=\"re5\">-O<\/span> <span class=\"re1\">$line<\/span>; <span class=\"kw1\">done<\/span> <span class=\"sy0\">&lt;<\/span> <span class=\"re1\">$HOME<\/span><span class=\"sy0\">\/<\/span>file-with-url.text<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"781\" height=\"207\" class=\"wp-image-23780\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-13.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-13.png 781w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-13-300x80.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-13-768x204.png 768w\" sizes=\"auto, (max-width: 781px) 100vw, 781px\" \/><\/p>\n<h3><a id=\"post-23710-tofpdqucchy1\"><\/a><strong>4: Using curl on Debian 12 to Add GPG key<\/strong><\/h3>\n<p>The <strong>curl command<\/strong> is also used to add the GPG key of the packages to the repository of your Debian 12. For example, I have added the GPG key of <strong>Wine<\/strong>:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">curl <span class=\"re5\">-s<\/span> https:<span class=\"sy0\">\/\/<\/span>dl.winehq.org<span class=\"sy0\">\/<\/span>wine-builds<span class=\"sy0\">\/<\/span>winehq.key <span class=\"sy0\">|<\/span> <span class=\"kw2\">sudo<\/span> gpg <span class=\"re5\">--dearmor<\/span> <span class=\"sy0\">|<\/span> <span class=\"kw2\">sudo<\/span> <span class=\"kw2\">tee<\/span> <span class=\"sy0\">\/<\/span>usr<span class=\"sy0\">\/<\/span>share<span class=\"sy0\">\/<\/span>keyrings<span class=\"sy0\">\/<\/span>winehq.gpg <span class=\"sy0\">&gt;<\/span> <span class=\"sy0\">\/<\/span>dev<span class=\"sy0\">\/<\/span>null<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"689\" height=\"240\" class=\"wp-image-23784\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-14.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-14.png 689w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-14-300x104.png 300w\" sizes=\"auto, (max-width: 689px) 100vw, 689px\" \/><\/p>\n<h3><strong>5<\/strong><a id=\"post-23710-ot2f1gfgeuce\"><\/a><strong>: Using curl on Debian 12 to Resume a Download <\/strong><\/h3>\n<p>If for some reason the download has stopped, then you can resume it using the <strong>-C-<\/strong> flag with the curl as shown in the below-given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">curl <span class=\"re5\">-C<\/span> - <span class=\"re5\">-o<\/span> google-chrome.deb https:<span class=\"sy0\">\/\/<\/span>dl.google.com<span class=\"sy0\">\/<\/span>linux<span class=\"sy0\">\/<\/span>direct<span class=\"sy0\">\/<\/span>google-chrome-stable_current_amd64.deb<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"790\" height=\"314\" class=\"wp-image-23789\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-15.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-15.png 790w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-15-300x119.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-15-768x305.png 768w\" sizes=\"auto, (max-width: 790px) 100vw, 790px\" \/><\/p>\n<h3><strong>6<\/strong><a id=\"post-23710-8zjffz7rayib\"><\/a><strong>: Using curl on Debian 12 to Specify a Maximum Transfer Rate <\/strong><\/h3>\n<p>You can limit the transfer rate while downloading the file from the Internet using the <strong>&#8211;limit-rate <\/strong>flag while executing the command followed by the value expressed in gigabyte(<strong>g<\/strong>), megabyte(<strong>m<\/strong>), and kilobyte(<strong>k<\/strong>):<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">curl <span class=\"re5\">--limit-rate<\/span> 1m <span class=\"re5\">-o<\/span> google-chrome.deb https:<span class=\"sy0\">\/\/<\/span>dl.google.com<span class=\"sy0\">\/<\/span>linux<span class=\"sy0\">\/<\/span>direct<span class=\"sy0\">\/<\/span>google-chrome-stable_current_amd64.deb<\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"790\" height=\"186\" class=\"wp-image-23794\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-16.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-16.png 790w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-16-300x71.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-16-768x181.png 768w\" sizes=\"auto, (max-width: 790px) 100vw, 790px\" \/><\/strong><\/p>\n<h3><strong>7<\/strong><a id=\"post-23710-p5qc5x3i2wg5\"><\/a><strong>: Using curl on Debian 12 to Test if a Website Supports HTTP\/2<\/strong><\/h3>\n<p>If you want to check whether a specific URL supports the HTTP\/2 protocol, you can use the curl command with the <strong>-I <\/strong>flag followed by the URL. The <strong>-s<\/strong> flag runs the command in silent mode and displays only output. If it supports the HTTP\/2 protocol, the output will be \u201c<strong>HTTP\/2 200\u201d, <\/strong>otherwise it will display the <strong>\u201cHTTP\/1.1 200 OK\u201d.<\/strong><\/p>\n<p>For instance, I have executed the following command to check whether the specified URL supports the HTTP\/2 protocol:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">curl <span class=\"re5\">-I<\/span> <span class=\"re5\">--http2<\/span> <span class=\"re5\">-s<\/span> https:<span class=\"sy0\">\/\/<\/span>linuxways.net<span class=\"sy0\">\/<\/span> <span class=\"sy0\">|<\/span> <span class=\"kw2\">grep<\/span> HTTP<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"781\" height=\"122\" class=\"wp-image-23798\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-17.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-17.png 781w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-17-300x47.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-17-768x120.png 768w\" sizes=\"auto, (max-width: 781px) 100vw, 781px\" \/><\/p>\n<h2><a id=\"post-23710-ije9jrimxkrc\"><\/a><strong>How to Remove curl From Debian 12<\/strong><\/h2>\n<p>To remove the <strong>curl<\/strong> utility from the Debian 12, execute the below-given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt remove curl <span class=\"re5\">-y<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"764\" height=\"235\" class=\"wp-image-23800\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-18.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-18.png 764w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-23710-18-300x92.png 300w\" sizes=\"auto, (max-width: 764px) 100vw, 764px\" \/><\/p>\n<h2><a id=\"post-23710-xs73fbz3mb1z\"><\/a><strong>Conclusion<\/strong><\/h2>\n<p>The <strong>curl<\/strong> is the powerful and widely used command line utility that is used to transfer the data to or from the servers. This command supports various options and protocols. You can install it on your Debian 12 using the \u201c<strong>sudo apt install curl -y\u201d, <\/strong>and customize the command using the various options. Using these options, you can send <strong>HTTP<\/strong> requests to fetch information from the website, download a single or multiple files from the internet, and more. We have explained the usage of the <strong>curl command <\/strong>with examples in the above post. We also discussed the command to remove the <strong>curl<\/strong> from your Debian 12 in this article.<\/p>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>In some cases, users might want to send a quick HTML request from the Command Line Interface (CLI), and for that purpose, Debian has multiple tools such as&hellip;<\/p>","protected":false},"author":115,"featured_media":23833,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-23710","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/23710","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/115"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=23710"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/23710\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/23833"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=23710"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=23710"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=23710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}