-
-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
54 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -158,7 +158,7 @@ When the input type is set to a "file", like in: | |
|
||
<input type="file" name="image"> | ||
|
||
You provide a file for this part by specifying the file name and use `@` and | ||
You provide a file for this part by specifying the filename and use `@` and | ||
the path to the file to include: | ||
|
||
curl -F [email protected] https://example.com/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
# Use the target file name from the server | ||
# Use the target filename from the server | ||
|
||
HTTP servers have the option to provide a header named `Content-Disposition:` | ||
in responses. That header may contain a suggested file name for the contents | ||
in responses. That header may contain a suggested filename for the contents | ||
delivered, and curl can be told to use that hint to name its local file. The | ||
`-J / --remote-header-name` enables this. If you also use the `-O` option, | ||
it makes curl use the file name from the URL by default and only *if* | ||
it makes curl use the filename from the URL by default and only *if* | ||
there is actually a valid Content-Disposition header available, it switches to | ||
saving using that name. | ||
|
||
`-J` has some problems and risks associated with it that users need to be | ||
aware of: | ||
|
||
1. It will only use the rightmost part of the suggested file name, so any path | ||
1. It will only use the rightmost part of the suggested filename, so any path | ||
or directories the server suggests will be stripped out. | ||
|
||
2. Since the file name is entirely selected by the server, curl will, of | ||
2. Since the filename is entirely selected by the server, curl will, of | ||
course, overwrite any preexisting local file in your current directory if the | ||
server happens to provide such a file name. | ||
server happens to provide such a filename. | ||
|
||
3. File name encoding and character sets issues. curl does not decode the name | ||
in any way, so you may end up with a URL-encoded file name where a browser | ||
3. filename encoding and character sets issues. curl does not decode the name | ||
in any way, so you may end up with a URL-encoded filename where a browser | ||
would otherwise decode it to something more readable using a sensible | ||
character set. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters