Through Pycurl. The GetInfo function of the Curl object can get the following information to the response:
(Reference: http://curl.haxx.se/libcurl/c/curl_easy_getinfo.html)
Pycurl. Namelookup_time Domain Name resolution time
Pycurl. Connect_time Remote Server Connection time
Pycurl. Pretransfer_time the time after the connection is over to the start of the transfer
Pycurl. Starttransfer_time the time that the first byte was received
Pycurl. Total_time the total time of the previous request
Pycurl. Redirect_time If there is a turn, the time spent
Pycurl. Effective_url
Pycurl. Http_code HTTP Response Code
Pycurl. Number of Redirect_count redirects
Pycurl. Size_upload size of uploaded data
Pycurl. Size_download the size of the downloaded data
Pycurl. Speed_upload upload Speed
Pycurl. Header_size Head Size
Pycurl. Request_size Request Size
Pycurl. Content_length_download Download Content Length
Pycurl. Content_length_upload Upload Content Length
Pycurl. Types of Content_Type Content
Pycurl. Response_code Response Code
Pycurl. Speed_download Download speed
Pycurl. Ssl_verifyresult
Time information for the Pycurl.info_filetime file
Pycurl. Http_connectcode HTTP Connection Code
Pycurl. Httpauth_avail
Pycurl. Proxyauth_avail
Pycurl. Os_errno
Pycurl. Num_connects
Pycurl. Ssl_engines
Pycurl.info_cookielist
Pycurl. Lastsocket
Pycurl. Ftp_entry_path
--------------------------------------------------------
C.setopt (Pycurl. UserAgent, ' mozilla/4.0 (compatible; MSIE 6.0) ')
C.setopt (Pycurl. Autoreferer, 1) # yet implemented in Pycurl
C.setopt (Pycurl. HttpGet, 1)
Pycurl Learning Notes--getinfo functions