diff --git a/SUMMARY.md b/SUMMARY.md index 11601740a..6955580b2 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -169,6 +169,7 @@ * [JavaScript and forms](http/post/javascript.md) * [Multipart formposts](http/post/multipart.md) * [-d vs -F](http/post/postvspost.md) + * [HTTP PUT](http/put.md) * [Redirects](http/redirects.md) * [Customize your HTTP](http/modify/README.md) * [Request method](http/modify/method.md) @@ -180,7 +181,6 @@ * [Ranges](http/modify/ranges.md) * [Conditionals](http/modify/conditionals.md) * [Compression](http/modify/compression.md) - * [HTTP PUT](http/put.md) * [Cookies](http/cookies/README.md) * [Cookie engine](http/cookies/engine.md) * [Reading cookies from file](http/cookies/reading.md) diff --git a/usingcurl/uploads.md b/usingcurl/uploads.md index 0815778f9..5b7d85fc9 100644 --- a/usingcurl/uploads.md +++ b/usingcurl/uploads.md @@ -67,11 +67,6 @@ that becomes the filename used when stored remotely: curl -T uploadthis ftp://example.com/this/directory/ -So if you prefer to select a different filename on the remote side than what -you have used locally, you specify it in the URL: - - curl -T uploadthis ftp://example.com/this/directory/remotename - FTP and SFTP also support *appending* to the target file when uploading instead of overwriting, with the `--append` option: @@ -101,3 +96,18 @@ support can output something even for an upload. Therefore, you may need to explicitly redirect the downloaded data to a file (using shell redirect '>', `-o` or similar) to get the progress meter displayed for upload. + +## Globbing + +curl also supports [globbing](../cmdline/urls/globbing.md) in the `-T` +argument so you can opt to easily upload a range of files: + + curl -T 'image[1-99].jpg' ftp://ftp.example.com/upload/ + +or a series of files: + + curl -T '{file1,file2}' https://example.com/upload/ + +or + + curl -T '{Huey,Dewey,Louie}.jpg' ftp://ftp.example.com/nephews/