2
Ive downloaded a file from this site with the following curl command:
https://www.modern.ie/en-us/virtualization-tools#downloads
# Copy/paste the command below into your terminal to begin downloading all the required files
# Don't have cURL or want to learn more, visit http://curl.haxx.se/
curl -O -L "https://www.modern.ie/vmdownload?platform=mac&virtPlatform=virtualbox&browserOS=IE10-Win8.1&parts=5&filename=VMBuild_20131127/VirtualBox/IE10_Win8/Mac/IE10.Win8.For.MacVirtualBox.part{1.sfx,2.rar,3.rar,4.rar,5.rar}"
Where does the file actually go? I cant seem to see it anywhere on my machine.
1look for a file named
vmdownload
in the directory where you ran that statement. – Darth Android – 2014-10-28T18:30:10.253@Darth Android, I believe that
vmdownload
is a cgi script with the ? providing options into it. – headkase – 2014-10-28T18:31:12.9901@Bill Correct! Which is what
curl
will use as the name when saving the result of requesting that script. On the HTTP level, the file being requested ishttps://www.modern.id/vmdownload
, sovmdownload
is the name thatcurl
wants to use. The rest is just parameterscurl
is sending to the server, so it doesn't factor into the naming of the file. – Darth Android – 2014-10-28T18:33:38.960@Darth Android, at the end of the parameters there are 5 parts specified however. How would those be handled with their partial names?
curl
can't be so brain-dead as to call them the name of the script instead of their proper names? – headkase – 2014-10-28T18:35:58.8501@Bill How is
curl
supposed to know that those parameters are the filename? You could use the parameter calledfilename
for anything - maybe the name of the file to upload; What if the website usesname
orfname
instead? There's no standards for any of this, so there's no way forcurl
to know what the filename might be, other than the script name.curl
doesn't even know that it's calling a script. – Darth Android – 2014-10-28T18:39:12.217