what is the meaning of time_pretransfer in curl

Refresh

April 2019

Views

183 time

1

I met a problem:

curl -o /dev/null -s -w %{time_namelookup}::%{time_connect}::%{time_pretransfer}::%{time_starttransfer}::%{time_total}::%{speed_download} "https://xxx"

When I used this command to test a http link through public network, it returned data like this:

0.004::1.008::1.024::60.805::60.805::0.000

it costed a lot of time in time_starttransfer.

So my question is, what does it mean when time_starttransfer costs a long time? It's a network problem or a server problem? And What is the meaning of time_pretransfer, I checked man page of curl, it says "it took from the start until the file transfer is just about to begin",I don't understand very well. Any help will do, thx

0 answers