Jump to content

How to get the time taken to send the request completely using curl?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
witheredOldMale

witheredOldMale

    Newbie

  • Members
  • Pip
  • 7 posts
The curl_getinfo function only tells the time taken by the server to respond but not the time taken to send the request. Would it be safe to consider the below measure as the time taken to send the request?

"
CURLINFO_PRETRANSFER_TIME

Pass a pointer to a double to receive 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 are specific to the particular protocol(s) involved. "

#2
witheredOldMale

witheredOldMale

    Newbie

  • Members
  • Pip
  • 7 posts
Reading the explanation of the various measurements given in http dot slash slash curl dot haxx dot se/libcurl/c/curl_easy_getinfo.html
whenever they are talking about data transfer, they don't qualify it as the data transfer of the request or the response hence the intended meaning is not at all clear.