Since curl was written for *nix (unix), there can be problems specifying working commands from the Windows Command Prompt. This is mostly related to the processing of "
(double-quote) marks, and \
(backslashes).
A simple thing you can try is:
- Enclose filenames in double-quotes.
- Escape the backslashes by adding another backslash before each desired backslash.
So, like this:
curl -T "E:\\Server\\bootstrap3\\_gh_pages\\" -u USER:PASSWORD ftp://domain.com/bootstrap/
You could also try using forward-slashes like this, which might work:
curl -T "E:/Server/bootstrap3/_gh_pages/" -u USER:PASSWORD ftp://domain.com/bootstrap/
Another thing you could try is to use the -K
(or --config=
) command line option switch for curl (some helpful information can be found here).
Basically, you place all the command line arguments in a file and use -K file
(or --config=file
) to tell curl where to find the arguments.
So, you create a file (example: test.txt) that has each command line option on a separate line like this:
-T "E:\\Server\\bootstrap3\\_gh_pages\\"
-u USER:PASSWORD
--url=ftp://domain.com/bootstrap/
Then run curl like this:
curl -K test.txt
or
curl --config=test.txt
If none of this works, you may need to run the curl command from a Cygwin terminal window on Windows. See this webpage for info on using curl with Cygwin on Windows.