curl --head now reports info "headers" on file:// URLs as well

This commit is contained in:
Daniel Stenberg
2003-10-30 09:08:16 +00:00
parent 5554f1ccba
commit fb26b2bd98
3 changed files with 50 additions and 8 deletions

View File

@@ -367,10 +367,11 @@ name, IP address or host name. An example could look like:
If this option is used several times, the last one will be used.
.IP "-I/--head"
(HTTP/FTP)
(HTTP/FTP/FILE)
Fetch the HTTP-header only! HTTP-servers feature the command HEAD
which this uses to get nothing but the header of a document. When used
on a FTP file, curl displays the file size only.
on a FTP or FILE file, curl displays the file size and last modification
time only.
If this option is used twice, the second will again disable header only.
.IP "-j/--junk-session-cookies"