Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
07660eea
Commit
07660eea
authored
21 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
-Z and -@ no longer work, they are now officially available for other
options, more frequently used, in a future release
parent
a2b2d4cd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main.c
+15
-16
15 additions, 16 deletions
src/main.c
with
15 additions
and
16 deletions
src/main.c
+
15
−
16
View file @
07660eea
...
...
@@ -423,7 +423,8 @@ static void help(void)
" --location-trusted Same, and continue to send authentication when
\n
"
" following locations, even when hostname changed
\n
"
" -m/--max-time <seconds> Maximum time allowed for the transfer
\n
"
" -M/--manual Display huge help text
\n
"
" --max-redirs <num> Set maximum number of redirections allowed (H)"
);
puts
(
" -M/--manual Display huge help text
\n
"
" -n/--netrc Must read .netrc for user name and password
\n
"
" --netrc-optional Use either .netrc or URL; overrides -n
\n
"
" --ntlm Enable HTTP NTLM authentication (H)"
);
...
...
@@ -435,6 +436,7 @@ static void help(void)
" -q When used as the first parameter disables .curlrc
\n
"
" -Q/--quote <cmd> Send QUOTE command to FTP before file transfer (F)"
);
puts
(
" -r/--range <range> Retrieve a byte range from a HTTP/1.1 or FTP server
\n
"
" --random-file <file> File to use for reading random data from (SSL)
\n
"
" -R/--remote-time Set the remote file's time on the local output
\n
"
" -s/--silent Silent mode. Don't output anything
\n
"
" -S/--show-error Show error. With -s, make curl show errors when they occur"
);
...
...
@@ -454,12 +456,10 @@ static void help(void)
#endif
puts
(
" -w/--write-out [format] What to output after completion
\n
"
" -x/--proxy <host[:port]> Use proxy. (Default port is 1080)
\n
"
" --random-file <file> File to use for reading random data from (SSL)
\n
"
" -X/--request <command> Specific request command to use"
);
puts
(
" -y/--speed-time Time needed to trig speed-limit abort. Defaults to 30
\n
"
" -Y/--speed-limit Stop transfer if below speed-limit for 'speed-time' secs
\n
"
" -z/--time-cond <time> Includes a time condition to the server (H)
\n
"
" -Z/--max-redirs <num> Set maximum number of redirections allowed (H)
\n
"
" -0/--http1.0 Force usage of HTTP 1.0 (H)
\n
"
" -1/--tlsv1 Force usage of TLSv1 (H)
\n
"
" -2/--sslv2 Force usage of SSLv2 (H)
\n
"
...
...
@@ -1088,6 +1088,8 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
{
"5p"
,
"wdebug"
,
FALSE
},
#endif
{
"5q"
,
"ftp-create-dirs"
,
FALSE
},
{
"5r"
,
"create-dirs"
,
FALSE
},
{
"5s"
,
"max-redirs"
,
TRUE
},
{
"0"
,
"http1.0"
,
FALSE
},
{
"1"
,
"tlsv1"
,
FALSE
},
{
"2"
,
"sslv2"
,
FALSE
},
...
...
@@ -1095,7 +1097,6 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
{
"a"
,
"append"
,
FALSE
},
{
"A"
,
"user-agent"
,
TRUE
},
{
"b"
,
"cookie"
,
TRUE
},
{
"B"
,
"ftp-ascii"
,
FALSE
},
/* this long format is OBSOLETE now! */
{
"B"
,
"use-ascii"
,
FALSE
},
{
"c"
,
"cookie-jar"
,
TRUE
},
{
"C"
,
"continue-at"
,
TRUE
},
...
...
@@ -1154,9 +1155,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
{
"Y"
,
"speed-limit"
,
TRUE
},
{
"y"
,
"speed-time"
,
TRUE
},
{
"z"
,
"time-cond"
,
TRUE
},
{
"Z"
,
"max-redirs"
,
TRUE
},
{
"#"
,
"progress-bar"
,
FALSE
},
{
"@"
,
"create-dirs"
,
FALSE
},
};
if
((
'-'
!=
flag
[
0
])
||
...
...
@@ -1337,10 +1336,19 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
dbug_init
();
break
;
#endif
case
'q'
:
/* --ftp-create
_
dirs */
case
'q'
:
/* --ftp-create
-
dirs */
config
->
ftp_create_dirs
^=
TRUE
;
break
;
case
'r'
:
/* --create-dirs */
config
->
create_dirs
=
TRUE
;
break
;
case
's'
:
/* --max-redirs */
/* specified max no of redirects (http(s)) */
config
->
maxredirs
=
atoi
(
nextarg
);
break
;
default:
/* the URL! */
{
struct
getout
*
url
;
...
...
@@ -1863,15 +1871,6 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
}
}
break
;
case
'Z'
:
/* specified max no of redirects (http(s)) */
config
->
maxredirs
=
atoi
(
nextarg
);
break
;
case
'@'
:
config
->
create_dirs
=
TRUE
;
break
;
default:
/* unknown flag */
return
PARAM_OPTION_UNKNOWN
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment