<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/bash/tags/curl</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 23 May 2013 14:41:36 GMT</pubDate>
<item>
<title>(Bash) A baby for download movie from http://maktabkhooneh.org - shapour</title>
<link>http://snipplr.com/view/70199/a-baby-for-download-movie-from-httpmaktabkhoonehorg/</link>
<description><![CDATA[ <p>get links from linkList file, that contain links like: http://maktabkhooneh.org/course?course=sharif-riazi2, then get all of course link on that page and save link of related video on that :D

Result is 'list' file that can interpreted with my another script :D</p> ]]></description>
<pubDate>Sat, 02 Mar 2013 01:37:01 GMT</pubDate>
<guid>http://snipplr.com/view/70199/a-baby-for-download-movie-from-httpmaktabkhoonehorg/</guid>
</item>
<item>
<title>(Bash) Simple cURL example - beneberle</title>
<link>http://snipplr.com/view/63704/simple-curl-example/</link>
<description><![CDATA[ <p>This example will go get the latest version of wordpress and save it as "wordpress-latest.tar.gz" in the current directory. Note, don't include the protocal (http://) in the url.</p> ]]></description>
<pubDate>Sun, 04 Mar 2012 02:36:26 GMT</pubDate>
<guid>http://snipplr.com/view/63704/simple-curl-example/</guid>
</item>
<item>
<title>(Bash) Post in jSON - kajinka13</title>
<link>http://snipplr.com/view/63126/post-in-json/</link>
<description><![CDATA[ <p>Post in jSON</p> ]]></description>
<pubDate>Tue, 07 Feb 2012 07:29:22 GMT</pubDate>
<guid>http://snipplr.com/view/63126/post-in-json/</guid>
</item>
<item>
<title>(Bash) cjb-upload.sh: Upload a file to upload.cjb.net using curl - ksaver</title>
<link>http://snipplr.com/view/60939/cjbuploadsh-upload-a-file-to-uploadcjbnet-using-curl/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 18 Nov 2011 00:59:54 GMT</pubDate>
<guid>http://snipplr.com/view/60939/cjbuploadsh-upload-a-file-to-uploadcjbnet-using-curl/</guid>
</item>
<item>
<title>(Bash) REST-Antwort http-header debuggen - abstraktor</title>
<link>http://snipplr.com/view/52213/restantwort-httpheader-debuggen/</link>
<description><![CDATA[ <p>Der folgende Aufruf führt einen PUTrequest durch und zeigt (nur!!) den antwort-header an. Damit es funktioniert muss in app/controllers/application_controller.rb die zeile protect_from_forgery auskommentiert werden.</p> ]]></description>
<pubDate>Sun, 17 Apr 2011 06:29:57 GMT</pubDate>
<guid>http://snipplr.com/view/52213/restantwort-httpheader-debuggen/</guid>
</item>
<item>
<title>(Bash) Curl Image Download - fyrebase</title>
<link>http://snipplr.com/view/51601/curl-image-download/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 05 Apr 2011 21:48:59 GMT</pubDate>
<guid>http://snipplr.com/view/51601/curl-image-download/</guid>
</item>
<item>
<title>(Bash) Fetch last.fm song from bash - Sn0opy</title>
<link>http://snipplr.com/view/47788/fetch-lastfm-song-from-bash/</link>
<description><![CDATA[ <p>This script fetches the current playing song of user XY</p> ]]></description>
<pubDate>Mon, 24 Jan 2011 19:18:40 GMT</pubDate>
<guid>http://snipplr.com/view/47788/fetch-lastfm-song-from-bash/</guid>
</item>
<item>
<title>(Bash) get_external_ip.sh - ksaver</title>
<link>http://snipplr.com/view/39389/getexternalipsh/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 22 Aug 2010 16:03:50 GMT</pubDate>
<guid>http://snipplr.com/view/39389/getexternalipsh/</guid>
</item>
<item>
<title>(Bash) Download a file using Terminal in MAC (cURL) - mprabhuram</title>
<link>http://snipplr.com/view/37899/download-a-file-using-terminal-in-mac-curl/</link>
<description><![CDATA[ <p>cURL can be used in place of wget
Use this command to download a file into filesystem using terminal.</p> ]]></description>
<pubDate>Mon, 26 Jul 2010 13:59:14 GMT</pubDate>
<guid>http://snipplr.com/view/37899/download-a-file-using-terminal-in-mac-curl/</guid>
</item>
<item>
<title>(Bash) Time To First Byte using curl - batamire</title>
<link>http://snipplr.com/view/35591/time-to-first-byte-using-curl/</link>
<description><![CDATA[ <p>As seen on PinoyTux Website</p> ]]></description>
<pubDate>Tue, 08 Jun 2010 04:30:47 GMT</pubDate>
<guid>http://snipplr.com/view/35591/time-to-first-byte-using-curl/</guid>
</item>
<item>
<title>(Bash) Test Gzip times with CURL - kurokikaze</title>
<link>http://snipplr.com/view/35399/test-gzip-times-with-curl/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 01 Jun 2010 06:10:53 GMT</pubDate>
<guid>http://snipplr.com/view/35399/test-gzip-times-with-curl/</guid>
</item>
<item>
<title>(Bash) Howto run Tidy from the command line - noah</title>
<link>http://snipplr.com/view/27758/howto-run-tidy-from-the-command-line/</link>
<description><![CDATA[ <p>This shell command will retrieve a Web page and validate the HTML with [Tidy, the HTML linter from the W3](http://tidy.sourceforge.net/).  You can get an **XHTML validation** report right in your shell prompt, just like you'd get from the [Firefox extension](https://addons.mozilla.org/en-US/firefox/addon/249) or the [Web service.](validator.w3.org/).  It's especially helpful when you need to **validate HTML on your intranet, or behind a firewall.**

### **NOTE: Curl does not follow redirects by default!**

By default, Curl retrieves *exactly* the URL you specify. The `-L` option causes Curl to follow redirects just like a Web browser would.

### **NOTE: Tidy produces a lot of output!**


Windows users should make sure their [command prompt screen buffer height is set to 9999](http://www.codinghorror.com/blog/archives/000334.html 'command prompt tips from Coding Horror') so that you don't "lose" any output.


### **Explanation of the command line options**

`curl -L` tells Curl to fo**LL**ow HTTP redirects

`curl -s` **S**uppresses Curl's annoying progress bar

`tidy -e` tells Tidy not to **E**mit the tidied HTML to the console

`tidy -q` tells Tidy to be **Q**uiet, instead of printing extra crap at the bottom of the report

### **Dependencies**

Curl and Tidy are installed via the [Cygwin setup.exe](http://cygwin.com/)

Alternately, Perl hackers could use [lwp-request](http://search.cpan.org/~gaas/libwww-perl-5.808/bin/lwp-request).

### **Doing more**

[Validate HTML with a stricter algorithm,](http://snipplr.com/view/4130/check-linked-pages-for-tidy-validation-errors-on-the-command-line/) using the OpenJade SGML parser.

[Validate linked pages](http://snipplr.com/view/4130/check-linked-pages-for-tidy-validation-errors-on-the-command-line/) with Tidy and lwp-request.</p> ]]></description>
<pubDate>Fri, 05 Feb 2010 12:41:54 GMT</pubDate>
<guid>http://snipplr.com/view/27758/howto-run-tidy-from-the-command-line/</guid>
</item>
<item>
<title>(Bash) use curl to share code/text from terminal - magicrebirth</title>
<link>http://snipplr.com/view/25278/use-curl-to-share-codetext-from-terminal/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 22 Dec 2009 15:46:37 GMT</pubDate>
<guid>http://snipplr.com/view/25278/use-curl-to-share-codetext-from-terminal/</guid>
</item>
<item>
<title>(Bash) Curl: download a series of urls - nate63179</title>
<link>http://snipplr.com/view/23346/curl-download-a-series-of-urls/</link>
<description><![CDATA[ <p>Allows downloading of sequential files</p> ]]></description>
<pubDate>Wed, 18 Nov 2009 11:17:59 GMT</pubDate>
<guid>http://snipplr.com/view/23346/curl-download-a-series-of-urls/</guid>
</item>
<item>
<title>(Bash) Post Twitpic with cURL - wearetherock</title>
<link>http://snipplr.com/view/19935/post-twitpic-with-curl/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 19 Sep 2009 00:12:50 GMT</pubDate>
<guid>http://snipplr.com/view/19935/post-twitpic-with-curl/</guid>
</item>
<item>
<title>(Bash) curl on Ad network with redirect - rowntreerob</title>
<link>http://snipplr.com/view/12832/curl-on-ad-network-with-redirect/</link>
<description><![CDATA[ <p>the call to the url for the ad results in redirect to the 'banner' or image file</p> ]]></description>
<pubDate>Thu, 05 Mar 2009 15:31:40 GMT</pubDate>
<guid>http://snipplr.com/view/12832/curl-on-ad-network-with-redirect/</guid>
</item>
<item>
<title>(Bash) Download a list of URLs - xenonite</title>
<link>http://snipplr.com/view/10832/download-a-list-of-urls/</link>
<description><![CDATA[ <p>Simply paste the list of URLs into stdin. You can add the option `-P 4` to parallelize the downloads.</p> ]]></description>
<pubDate>Fri, 02 Jan 2009 16:24:05 GMT</pubDate>
<guid>http://snipplr.com/view/10832/download-a-list-of-urls/</guid>
</item>
<item>
<title>(Bash) Using wget or curl to download web sites for archival - rwczippy</title>
<link>http://snipplr.com/view/8841/using-wget-or-curl-to-download-web-sites-for-archival/</link>
<description><![CDATA[ <p>This will start at the specified URL and recursively download pages up to 3 links away from the original page, but only pages which are in the directory of the URL you specified (emacstips/) or one of its subdirectories.

wget will also rewrite the links in the pages it downloaded to make your downloaded copy a useful local copy, and it will download all page prerequisites (e.g. images, stylesheets, and the like).

The last two options -nH --cut-dirs=1 control where wget places the output. If you omitted those two options, wget would, for example, download http://web.psung.name/emacstips/index.html and place it under a subdirectory web.psung.name/emacstips of the current directory. With only -nH ("no host directory") wget would write that same file to a subdirectory emacstips. And with both options wget would write that same file to the current directory. In general, if you want to reduce the number of extraneous directories created, change cut-dirs to be the number of leading directories in your URL.</p> ]]></description>
<pubDate>Sat, 04 Oct 2008 20:24:43 GMT</pubDate>
<guid>http://snipplr.com/view/8841/using-wget-or-curl-to-download-web-sites-for-archival/</guid>
</item>
<item>
<title>(Bash) Get sort url from tinyurl.com - Juanje</title>
<link>http://snipplr.com/view/6215/get-sort-url-from-tinyurlcom/</link>
<description><![CDATA[ <p>Little script which call tinyurl.com via 'curl' for generate a sort url of the url you pass.</p> ]]></description>
<pubDate>Wed, 14 May 2008 02:11:49 GMT</pubDate>
<guid>http://snipplr.com/view/6215/get-sort-url-from-tinyurlcom/</guid>
</item>
<item>
<title>(Bash) QuickBase add record from the command line - noah</title>
<link>http://snipplr.com/view/5639/quickbase-add-record-from-the-command-line/</link>
<description><![CDATA[ <p>The field IDs (_fid_19) are specific to your QB instance.  See the API ref for how to figure out which field is which.

To get back the URL of the normal HTML confirmation page, add the argument -d "disprec=true"</p> ]]></description>
<pubDate>Mon, 31 Mar 2008 22:51:20 GMT</pubDate>
<guid>http://snipplr.com/view/5639/quickbase-add-record-from-the-command-line/</guid>
</item>
</channel>
</rss>