I have a windows machine(Server 2012). I have a shared location in it restricted to my user id(\\my_windows\test). I have few files inside test folder. I want to upload or download files to this location using curl. Is this possible?

Whatever examples I saw till now has https or https as the url for Curl. I am able to open this network location in Mozilla with 'file://///my_windows/test'. I want to curl to this location. How do I do it or is there anyway that I can make this location to open with http url?



You won't be able to do this with curl, as it doesn't support smb or URI. Do you specifically need to use curl? Can you curl the machines IP (eg

If it were my machine I would set it up as a samba share or by ftp.

Here is the man pages for curl: https://curl.haxx.se/docs/manual.html

  • 1
    Thanks a lot Nelson for the response. I am not able to open it via But I yesterday found a link which can make a windows share location to open with either FTP or HTTP/HTTPS. thewindowsclub.com/map-an-ftp-drive-windows May be this will help me once I am able to open it via http. Will check and update. Thanks again! – Raji Apr 5 '17 at 6:46
  • @Raji I have a similar job that am trying to resolve and I have the same question as yours. How did you solve this are you able to upload files using curl FILE. Thanks for your help in advance. – user12345 Dec 23 '18 at 18:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.