I have a client [Windows 10 VM] and a server [say a linux based VM].
I have Apache running on the Linux Server.
I have a file on the linux server that I want to download on my windows client.
I want to do it in 2 ways from the windows CMD: -Using curl -using wget
I tried the foll commands on my windows CMD. But doesnt work. Is something wrong with my CLI?
curl http://x.x.x.x/home/abc/ -O test.zip wget http://x.x.x.x/home/abc/ -O test.zip Edit:: Insense, I wanted to understand the right CLI syntax to do a wget/curl to fetch a file from a certain directory on the remote server (/home/abc)
wgetis not a standard Windows command;curlactually is (at least since Windows 10 1803), and you can have a look at its syntax usingcurl --help.Invoke-WebRequest.