{"id":20592,"date":"2016-10-21T07:45:15","date_gmt":"2016-10-21T12:45:15","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=20592"},"modified":"2022-06-03T03:42:35","modified_gmt":"2022-06-03T08:42:35","slug":"curl-command-examples","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/curl-command-examples\/","title":{"rendered":"cURL Command Examples"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\r\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"742\" height=\"371\" class=\"wp-image-27654\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/cURL-command-examples.jpg\" alt=\"cURL command examples\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/cURL-command-examples.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/cURL-command-examples-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/cURL-command-examples-300x150.jpg 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>We&#8217;ll show you 5 basic cURL command examples, and explain them in detail. cURL is a very useful command line tool used to transfer data from or to a server. cURL supports various protocols, such as FILE, HTTP, HTTPS, IMAP, IMAPS, LDAP, DICT, LDAPS, TELNET, FTP, FTPS, GOPHER, RTMP, RTSP, SCP, SFTP, POP3, POP3S, SMB, SMBS, SMTP, SMTPS, and TFTP. If you&#8217;d like to find out more about cURL itself, check out our article:\u00a0<a href=\"https:\/\/www.rosehosting.com\/blog\/what-is-curl\/\">What is cURL?<\/a><\/p>\r\n\r\n\r\n\r\n<p><!--more--><\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-26459\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/what-is-curl.jpg\" alt=\"what is curl\" width=\"900\" height=\"156\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/what-is-curl.jpg 900w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/what-is-curl-150x26.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/what-is-curl-300x52.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/what-is-curl-768x133.jpg 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/what-is-curl-860x149.jpg 860w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/what-is-curl-680x118.jpg 680w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/what-is-curl-500x87.jpg 500w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/what-is-curl-400x69.jpg 400w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/what-is-curl-200x35.jpg 200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/what-is-curl-50x9.jpg 50w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/h2>\r\n\r\n\r\n\r\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69eab15fc4b87\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69eab15fc4b87\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/curl-command-examples\/#What-is-cURL-and-what-does-it-do\" >What is cURL, and what does it do?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/curl-command-examples\/#1-cURL-command-1-Check-URL\" >1. cURL command 1: Check URL<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/curl-command-examples\/#2-cURL-command-2-Save-the-output-of-the-URL-to-a-file\" >2. cURL command 2:\u00a0 Save the output of the URL to a file<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/curl-command-examples\/#3-cURL-command-3-Download-files\" >3. cURL command 3: Download files<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/curl-command-examples\/#4-cURL-command-4-Get-HTTP-header-information-from-a-website\" >4. cURL command 4: Get HTTP header information from a website<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/curl-command-examples\/#5-cURL-command-5-Access-an-FTP-server\" >5. cURL command 5: Access an FTP server<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-what-is-curl-and-what-does-it-do\"><span class=\"ez-toc-section\" id=\"What-is-cURL-and-what-does-it-do\"><\/span>What is cURL, and what does it do?<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"900\" height=\"132\" class=\"wp-image-26460\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/basic-curl-commands-examples.jpg\" alt=\"basic curl command examples\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/basic-curl-commands-examples.jpg 900w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/basic-curl-commands-examples-150x22.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/basic-curl-commands-examples-300x44.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/basic-curl-commands-examples-768x113.jpg 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/basic-curl-commands-examples-860x126.jpg 860w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/basic-curl-commands-examples-680x100.jpg 680w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/basic-curl-commands-examples-500x73.jpg 500w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/basic-curl-commands-examples-400x59.jpg 400w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/basic-curl-commands-examples-200x29.jpg 200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/basic-curl-commands-examples-50x7.jpg 50w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p>cURL is a tool to transfer data from or to a server, using one of the many supported protocols (HTTP, HTTPS, FTP, FTPS, SCP, SFTP, TFTP, DICT, TELNET, LDAP or FILE). This tool is designed to work without user interaction, making it excellent for automation. It offers proxy support, user authentication, FTP uploading, HTTP posting, SSL connections, cookies, file transfer resume, Metalink, and many other features listed below. cURL can be used in many different and interesting ways. With this tool you can download, upload and manage files, check your email address, or even update your status on some social media websites, and even check the weather outside. In this article will cover five of the most useful and basic uses of the cURL tool on any <a href=\"https:\/\/www.rosehosting.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Linux VPS<\/a>. For detailed explanation of what is cURL, please visit our dedicated blog post on <a href=\"https:\/\/www.rosehosting.com\/blog\/what-is-curl\/\">What is cURL?<\/a><\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-1-curl-command-1-check-url\"><span class=\"ez-toc-section\" id=\"1-cURL-command-1-Check-URL\"><\/span>1. cURL command 1: Check URL<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>One of the most common and simplest uses of cURL is typing the command itself, followed by the URL you want to check:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">curl https:\/\/domain.com\/<\/pre>\r\n\r\n\r\n\r\n<p>This command will display the content of the URL on your terminal.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-2-curl-command-2-save-the-output-of-the-url-to-a-file\"><span class=\"ez-toc-section\" id=\"2-cURL-command-2-Save-the-output-of-the-URL-to-a-file\"><\/span>2. cURL command 2:\u00a0 Save the output of the URL to a file<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>The output of a cURL command can be easily saved to a file by adding the -o option to the command, as shown below:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">curl -o website https:\/\/domain.com\/\r\n\r\n% Total\u00a0\u00a0\u00a0 % Received % Xferd\u00a0 Average Speed\u00a0\u00a0 Time\u00a0\u00a0\u00a0 Time\u00a0\u00a0\u00a0\u00a0 Time\u00a0 Current\r\nDload\u00a0 Upload\u00a0\u00a0 Total\u00a0\u00a0 Spent\u00a0\u00a0\u00a0 Left\u00a0 Speed\r\n100 41793\u00a0\u00a0\u00a0 0 41793\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0 275k\u00a0\u00a0\u00a0\u00a0\u00a0 0 --:--:-- --:--:-- --:--:--\u00a0 2.9M<\/pre>\r\n\r\n\r\n\r\n<p>In this example, the output will be saved to a file named &#8216;website&#8217; in the current working directory. You can save in other directories using the same method as other programs by using forward-slashes.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-3-curl-command-3-download-files\"><span class=\"ez-toc-section\" id=\"3-cURL-command-3-Download-files\"><\/span>3. cURL command 3: Download files<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>You can download files with cURL by adding the -O option to the command. It is used for saving files on the local server with the same names as on the remote server:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">curl -O https:\/\/domain.com\/file.zip<\/pre>\r\n\r\n\r\n\r\n<p>In this example, the &#8216;file.zip&#8217; zip archive will be downloaded to the current working directory.<\/p>\r\n\r\n\r\n\r\n<p>You can also download the file with a different name by adding the -o option to cURL:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">curl -o archive.zip https:\/\/domain.com\/file.zip<\/pre>\r\n\r\n\r\n\r\n<p>This way the &#8216;file.zip&#8217; archive will be downloaded and saved as &#8216;archive.zip&#8217;.<\/p>\r\n\r\n\r\n\r\n<p>cURL can also be used to download multiple files simultaneously, as shown in the example below:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">curl -O https:\/\/domain.com\/file.zip -O https:\/\/domain.com\/file2.zip<\/pre>\r\n\r\n\r\n\r\n<p>cURL can be also used to download files securely via SSH using the following command:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">curl -u user sftp:\/\/server.domain.com\/path\/to\/file<\/pre>\r\n\r\n\r\n\r\n<p>Note that you have to use the full path of the file you want to download.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-4-curl-command-4-get-http-header-information-from-a-website\"><span class=\"ez-toc-section\" id=\"4-cURL-command-4-Get-HTTP-header-information-from-a-website\"><\/span>4. cURL command 4: Get HTTP header information from a website<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>You can easily get HTTP header information from any website you want by adding the -I option (capital &#8216;i&#8217;) to cURL.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">curl -I http:\/\/domain.com\r\n\r\nHTTP\/1.1 200 OK\r\nDate: Sun, 16 Oct 2016 23:37:15 GMT\r\nServer: Apache\/2.4.23 (Unix)\r\nX-Powered-By: PHP\/5.6.24\r\nConnection: close\r\nContent-Type: text\/html; charset=UTF-8<\/pre>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-5-curl-command-5-access-an-ftp-server\"><span class=\"ez-toc-section\" id=\"5-cURL-command-5-Access-an-FTP-server\"><\/span>5. cURL command 5: Access an FTP server<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>To access your FTP server with cURL, use the following command:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">curl ftp:\/\/ftp.domain.com --user username:password<\/pre>\r\n\r\n\r\n\r\n<p>cURL will connect to the FTP server and list all files and directories in the user&#8217;s home directory.<\/p>\r\n\r\n\r\n\r\n<p>You can download files via FTP, too:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">curl ftp:\/\/ftp.domain.com\/filename.extension --user username:password<\/pre>\r\n\r\n\r\n\r\n<p>and upload a file onto the FTP server:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">curl -T filename.extension ftp:\/\/ftp.domain.com\/ --user username:password<\/pre>\r\n\r\n\r\n\r\n<p>You can also check the cURL manual page to see all available cURL options and functions:<\/p>\r\n\r\n\r\n\r\n<p>man curl<\/p>\r\n\r\n\r\n\r\n<p>This covers most of the basic commands and features that most new users of cURL would seek to use. Of course, the capabilities of cURL are far greater than this guide, with most features intended for experienced users.<\/p>\r\n\r\n\r\n<hr class=\"wp-block-separator\" \/>\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"alignleft\"><img decoding=\"async\" width=\"180\" height=\"54\" class=\"wp-image-27367\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/curl-command-example.jpg\" alt=\"curl command example\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/curl-command-example.jpg 180w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/curl-command-example-150x45.jpg 150w\" sizes=\"(max-width: 180px) 100vw, 180px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p>Of course, if you use one of our <a href=\"https:\/\/www.rosehosting.com\/vps-hosting.html\">Linux VPS Hosting<\/a> services, you can always contact and ask our expert Linux admins (via chat or ticket) about cURL commands and anything related to cURL. The can show you cRUL command examples and can explain to you the best practices when using cURL commands. They are available 24\u00d77 and will provide information or assistance immediately and they can show you cURL command examples for your needs.<\/p>\r\n\r\n\r\n\r\n<p><span style=\"color: #ff0000;\"><strong>PS.<\/strong><\/span> If you liked this post about\u00a0cURL command examples, please share it with your friends on social networks using the buttons below or simply leave a reply. Thanks.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ll show you 5 basic cURL command examples, and explain them in detail. cURL is a very useful command line &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"cURL Command Examples\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/curl-command-examples\/#more-20592\" aria-label=\"Read more about cURL Command Examples\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":27654,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[1417,1664,1665],"class_list":["post-20592","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tips-and-tricks","tag-curl","tag-curl-command","tag-examples","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>cURL Command Examples | RoseHosting<\/title>\n<meta name=\"description\" content=\"cURL Command Examples | RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/curl-command-examples\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"cURL Command Examples\" \/>\n<meta property=\"og:description\" content=\"cURL Command Examples | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/curl-command-examples\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2016-10-21T12:45:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:42:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/cURL-command-examples.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"371\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/curl-command-examples\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/curl-command-examples\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"cURL Command Examples\",\"datePublished\":\"2016-10-21T12:45:15+00:00\",\"dateModified\":\"2022-06-03T08:42:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/curl-command-examples\\\/\"},\"wordCount\":715,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/curl-command-examples\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/cURL-command-examples.jpg\",\"keywords\":[\"curl\",\"curl command\",\"examples\"],\"articleSection\":[\"Tips and Tricks\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/curl-command-examples\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/curl-command-examples\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/curl-command-examples\\\/\",\"name\":\"cURL Command Examples | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/curl-command-examples\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/curl-command-examples\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/cURL-command-examples.jpg\",\"datePublished\":\"2016-10-21T12:45:15+00:00\",\"dateModified\":\"2022-06-03T08:42:35+00:00\",\"description\":\"cURL Command Examples | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/curl-command-examples\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/curl-command-examples\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/curl-command-examples\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/cURL-command-examples.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/cURL-command-examples.jpg\",\"width\":742,\"height\":371,\"caption\":\"cURL command examples\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/curl-command-examples\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"cURL Command Examples\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"cURL Command Examples | RoseHosting","description":"cURL Command Examples | RoseHosting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/curl-command-examples\/","og_locale":"en_US","og_type":"article","og_title":"cURL Command Examples","og_description":"cURL Command Examples | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/curl-command-examples\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2016-10-21T12:45:15+00:00","article_modified_time":"2022-06-03T08:42:35+00:00","og_image":[{"width":742,"height":371,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/cURL-command-examples.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/curl-command-examples\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/curl-command-examples\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"cURL Command Examples","datePublished":"2016-10-21T12:45:15+00:00","dateModified":"2022-06-03T08:42:35+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/curl-command-examples\/"},"wordCount":715,"commentCount":4,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/curl-command-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/cURL-command-examples.jpg","keywords":["curl","curl command","examples"],"articleSection":["Tips and Tricks"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/curl-command-examples\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/curl-command-examples\/","url":"https:\/\/www.rosehosting.com\/blog\/curl-command-examples\/","name":"cURL Command Examples | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/curl-command-examples\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/curl-command-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/cURL-command-examples.jpg","datePublished":"2016-10-21T12:45:15+00:00","dateModified":"2022-06-03T08:42:35+00:00","description":"cURL Command Examples | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/curl-command-examples\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/curl-command-examples\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/curl-command-examples\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/cURL-command-examples.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/07\/cURL-command-examples.jpg","width":742,"height":371,"caption":"cURL command examples"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/curl-command-examples\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"cURL Command Examples"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/20592","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=20592"}],"version-history":[{"count":2,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/20592\/revisions"}],"predecessor-version":[{"id":41490,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/20592\/revisions\/41490"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/27654"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=20592"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=20592"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=20592"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}