I am Hack Sparrow
Captain of the Internets.

Using Node.js to download files

There are three approaches to writing a file downloader app using Node - i. HTTP.get, ii. curl, iii. wget. I have created functions for all of them. To get the examples working makes sure you have the dependencies and app variables intact. Read the comments thoroughly, you will not only learn how to download files, but will also learn more about Node's child_process, File System, Buffers, and Streams. Let's start with HTTP.get. ...

How to download file using cURL

So you wanna download files using cURL but don't know how to do that. Fear not, for the super-genius Captain Hack Sparrow is here to show you how to do just that. Learn from these examples: [code] $ curl -O http://example.com/Flag_of_Edward_England.svg [/code] The above usage of cURL with the uppercase option will download the file with the same name as the original. [code] $ curl -o flag.svg http://example.com/Flag_of_Edwar ...

PHP CURLOPT_GET Does not Exist!

Sooner or later someone's going run into this notice error: Use of undefined constant CURLOPT_GET - assumed 'CURLOPT_GET'. Probably you downloaded a PHP class or a function written by someone else from the Web. Right? Well, no matter how you ended up with that notice, let's try to analyze the problem and the solution. Take a look at the example code: [php] curl_setopt($ch, CURLOPT_GET, true); [/php] We can safely as ...