21
2
Introduction
Yes, it's as simple as that. Download any file from the internet!
Rules
You must use your language's API.
You must output the file you downloaded to STDOUT, the console, a file, etc.
Input should be empty, or the URL you wish to download, but the url must count to byte count..
Good luck!
1
curl
is not a tool that already exists? :) – Abel Tom – 2017-05-10T17:25:57.2401@AbelTom this is "your language's API" – programmer5000 – 2017-05-10T17:27:53.310
7
curl ai
no need for http:// – opatut – 2017-05-10T22:13:38.470could you please explain what
curl 3.ly
does? – bolov – 2017-05-11T11:10:23.627@bolov this uses the command line program
curl
to download the page athttp://3.ly
– jaapz – 2017-05-11T11:42:08.083Why not
wget ai
? – Matthew Roh – 2017-05-11T13:56:37.1371@SIGSEGV: Because that does not output to stdout. – Lightness Races with Monica – 2017-05-11T21:46:05.673
2This doesn't work for me? What's
ai
supposed to be? Givescurl: (6) Could not resolve host: ai
here. – Rɪᴋᴇʀ – 2017-05-11T23:00:08.517@Riker It's the ccTLD for Anguilla.
– martin – 2017-05-12T02:41:26.633curl ai
gave me http://209.59.119.34@martin yea, it only works on some machines. It's confirmed to work on some linux distros, but not mac and not all windows machines. – Rɪᴋᴇʀ – 2017-05-12T03:43:35.697