Regarding PHP CURL

Can someone tell me if I understand the curl_getinfo () information correctly?

Array ( [url] => https://www.someserver.com [content_type] => text/html [http_code] => 200 [header_size] => 350 [filetime] => -1 [ssl_verify_result] => 19 [redirect_count] => 0 [total_time] => 0.078 [namelookup_time] => 0 [connect_time] => 0.016 [pretransfer_time] => 0.031 [starttransfer_time] => 0.078 [redirect_time] => 0 ) 

As I understand it, pretransfer_time means the time when the header request is already sent to the server and the server is executing the request? Then starttransfer_time should mean the time when the page is prepared by the server, and the client begins to receive data (headers + body?). I'm right?

+4
source share
2 answers

About pretransfer_time , of course. starttransfer_time - when the client begins to receive data, but not the server load time. There is no way to find out if it is not configured to send this information in any way.

+2
source

Pretransfer_time

Pass a double pointer to get the time, in seconds, taken from start, until the file transfer is just about to begin. This includes all pre-commands and negotiations that are specific to a specific protocol (s)

Starttransfer_time

Pass a double pointer to get the time, in seconds, taken from starting, until the first byte is just about to translate. This includes CURLINFO_PRETRANSFER_TIME, as well as the time that the server needs to calculate. Result

+2
source

All Articles