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
8475a0df
Commit
8475a0df
authored
20 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
new -w variables supported
parent
ccc4c9c0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/curl.1
+9
-0
9 additions, 0 deletions
docs/curl.1
src/writeout.c
+14
-0
14 additions, 0 deletions
src/writeout.c
with
23 additions
and
0 deletions
docs/curl.1
+
9
−
0
View file @
8475a0df
...
@@ -938,6 +938,12 @@ The time, in seconds, it took from the start until the file transfer is just
...
@@ -938,6 +938,12 @@ The time, in seconds, it took from the start until the file transfer is just
about to begin. This includes all pre-transfer commands and negotiations that
about to begin. This includes all pre-transfer commands and negotiations that
are specific to the particular protocol(s) involved.
are specific to the particular protocol(s) involved.
.TP
.TP
.B time_redirect
The time, in seconds, it took for all redirection steps include name lookup,
connect, pretransfer and transfer before final transaction was
started. time_redirect shows the complete execution time for multiple
redirections. (Added in 7.12.3)
.TP
.B time_starttransfer
.B time_starttransfer
The time, in seconds, it took from the start until the first byte is just about
The time, in seconds, it took from the start until the first byte is just about
to be transfered. This includes time_pretransfer and also the time the
to be transfered. This includes time_pretransfer and also the time the
...
@@ -966,6 +972,9 @@ The Content-Type of the requested document, if there was any. (Added in 7.9.5)
...
@@ -966,6 +972,9 @@ The Content-Type of the requested document, if there was any. (Added in 7.9.5)
.TP
.TP
.B num_connects
.B num_connects
Number of new connects made in the recent transfer. (Added in 7.12.3)
Number of new connects made in the recent transfer. (Added in 7.12.3)
.TP
.B num_redirects
Number of redirects that were followed in the request. (Added in 7.12.3)
.RE
.RE
If this option is used several times, the last one will be used.
If this option is used several times, the last one will be used.
...
...
This diff is collapsed.
Click to expand it.
src/writeout.c
+
14
−
0
View file @
8475a0df
...
@@ -57,6 +57,8 @@ typedef enum {
...
@@ -57,6 +57,8 @@ typedef enum {
VAR_EFFECTIVE_URL
,
VAR_EFFECTIVE_URL
,
VAR_CONTENT_TYPE
,
VAR_CONTENT_TYPE
,
VAR_NUM_CONNECTS
,
VAR_NUM_CONNECTS
,
VAR_REDIRECT_TIME
,
VAR_REDIRECT_COUNT
,
VAR_NUM_OF_VARS
/* must be the last */
VAR_NUM_OF_VARS
/* must be the last */
}
replaceid
;
}
replaceid
;
...
@@ -82,6 +84,8 @@ static struct variable replacements[]={
...
@@ -82,6 +84,8 @@ static struct variable replacements[]={
{
"speed_upload"
,
VAR_SPEED_UPLOAD
},
{
"speed_upload"
,
VAR_SPEED_UPLOAD
},
{
"content_type"
,
VAR_CONTENT_TYPE
},
{
"content_type"
,
VAR_CONTENT_TYPE
},
{
"num_connects"
,
VAR_NUM_CONNECTS
},
{
"num_connects"
,
VAR_NUM_CONNECTS
},
{
"time_redirect"
,
VAR_REDIRECT_TIME
},
{
"num_redirects"
,
VAR_REDIRECT_COUNT
},
{
NULL
,
VAR_NONE
}
{
NULL
,
VAR_NONE
}
};
};
...
@@ -138,6 +142,16 @@ void ourWriteOut(CURL *curl, char *writeinfo)
...
@@ -138,6 +142,16 @@ void ourWriteOut(CURL *curl, char *writeinfo)
curl_easy_getinfo
(
curl
,
CURLINFO_NUM_CONNECTS
,
&
longinfo
))
curl_easy_getinfo
(
curl
,
CURLINFO_NUM_CONNECTS
,
&
longinfo
))
fprintf
(
stream
,
"%ld"
,
longinfo
);
fprintf
(
stream
,
"%ld"
,
longinfo
);
break
;
break
;
case
VAR_REDIRECT_COUNT
:
if
(
CURLE_OK
==
curl_easy_getinfo
(
curl
,
CURLINFO_REDIRECT_COUNT
,
&
longinfo
))
fprintf
(
stream
,
"%ld"
,
longinfo
);
break
;
case
VAR_REDIRECT_TIME
:
if
(
CURLE_OK
==
curl_easy_getinfo
(
curl
,
CURLINFO_REDIRECT_TIME
,
&
doubleinfo
))
fprintf
(
stream
,
"%.3f"
,
doubleinfo
);
break
;
case
VAR_TOTAL_TIME
:
case
VAR_TOTAL_TIME
:
if
(
CURLE_OK
==
if
(
CURLE_OK
==
curl_easy_getinfo
(
curl
,
CURLINFO_TOTAL_TIME
,
&
doubleinfo
))
curl_easy_getinfo
(
curl
,
CURLINFO_TOTAL_TIME
,
&
doubleinfo
))
...
...
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