what is the meaning of time_pretransfer in curl


April 2019


183 time


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:


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