List Curl Library A total of 17 functions
- Curl_close: Turn off Curl session
- Curl_copy_handle: Copies a curl session handle and 3 copies all its parameters
- Curl_errno: Returns the last error code
- Curl_error: Returns a string that describes the last error of the current session
- Curl_exec: Executing the current session
- Curl_getinfo: Get Specific information
- Curl_init: Initializing a Curl session
- Curl_multi_add_handle: Adding a handle to a multi-connection session
- Curl_multi_close: Closing a multi-handle Crul session
- Curl_multi_exec: Performing a multi-handle curl session
- Curl_multi_getcontent: Returns the contents of a handle after execution if Curlopt_returntransfer is set
- Curl_multi_info_read: Get information on all current connections
- Curl_multi_init: Initializing a multi-handle session
- Curl_multi_remove_handle: Removing a handle from a multi-handle session
- Curl_multi_select: Get all bound sockets
- curl_setopt: Setting Curl Transfer options
- Curl_version: Get the Curl version
Common Settings Options Boolean options
- Curlopt_autoreferer: Automatically sets the forward connection when the returned information header contains the steering information
- Curlopt_binarytransfer:truetoreturntherawoutputwhencurlopt_returntransferisused.
- Curlopt_cookiesession: Flag for new Cookie session, ignoring previously set cookie session
- CURLOPT_CRLF: Converting a line break from a UNIX system to a DOS line break
- Curlopt_dns_use_global_cache: Using the global DNS cache
- Curlopt_failonerror: Ignore return error
- Curlopt_filetime: Gets the modified date of the requested document, which can be obtained with curl_getinfo ().
- Curlopt_followlocation: All redirection information returned by the server immediately
- Curlopt_forbid_reuse: Forces the session to close after processing is finished and is no longer cached for reuse
- Curlopt_fresh_connect: Forces a new session to be created instead of reusing the cached session
- Curlopt_header: Contains the response header information in the returned output
- Curlopt_httpget: Set HTTP request mode to get
- Curlopt_httpproxytunnel: Establishing a connection via an HTTP proxy
- Curlopt_nobody: The returned output does not contain document information.
- Curlopt_noprogress: Prohibit process level transfer, PHP automatically set to True
- Curlopt_nosignal: Ignore all messages sent to PHP
- Curlopt_post: Set post mode to submit data, post format is application/x-www-form-urlencoded
- Curlopt_puttrue: Set the put mode to upload files while setting curlopt_infile and Curlopt_infilesize
- Curlopt_returntransfer: Returns a string instead of calling Curl_exec () directly after the output
- CURLOPT_SSL_VERIFYPEER:SSL Authentication on
- Curlopt_unrestricted_auth: Always link to append user name and password, and set curlopt_followlocation
- Curlopt_upload: Preparing to upload
Integer value options curlopt_buffersize: Cache size CURLOPT_CO Nnecttimeout: Connection time setting, default 0 is unlimited Curlopt_dns_cache_timeout: The time that the DNS information is saved in memory, default 2 minutes curlopt_infilesize: File sizes uploaded to remote sites curlopt _low_speed_limit: Transfer minimum speed limit andabort. Curlopt_low_speed_time: Transfer time limit curlopt_maxconnects: Maximum number of persistent connections Curlopt_maxredirs : Maximum number of turns Curlopt_port: Connection port Curlopt_proxyau TH: Proxy Server Authentication method curlopt_proxyport: Proxy server port C Urlopt_proxytype: Proxy Server type Curlopt_timeout:curl function maximum execution time string option
- COOKIE information in Set-cookie in curlopt_cookie:http header
- Curlopt_cookiefile: File containing cookie information, the format of the cookie file can be in Netscape format, or just the format of the HTTP header
- Curlopt_cookiejar: file that stores cookie information after connection ends
- Curlopt_customrequest: Custom request header, using relative address
- Curlopt_encoding:http the value of accept-encoding in the request header
- Data content submitted in curlopt_postfields:post format
- Curlopt_proxy: Proxy Channel
- CURLOPT_PROXYUSERPWD: Proxy authentication user name and password
- Curlopt_range: Returns the range of data, in bytes
- Curlopt_referer: Forward Link
- Curlopt_url: The URL address to connect to, which can be set in Curl_init ()
- Value of User-agent in Curlopt_useragent:http header
- CURLOPT_USERPWD: Authentication information for connection type use
Array Options curlopt_http200aliases:200 response code Array, the response in the array is considered to be the correct response curlopt_httpheader: Custom Request header informationcan only be an option for a flow handle:Curlopt_file: Transfer the night handle to write, default is standard output curlopt_infile: Transfer file handle to read Curlopt_stderr: One replacement option as standard error output Curlopt_writeheader: Transfer header information to write the file callback function option Curlopt_headerfunction: A callback function with two parameters, the first is the session handle, and the second is the HTTP response header information string. With this callback function, the response header information is processed on its own. The response header information is returned by row. Sets the return value to the string length. Curlopt_readfunction: A callback function with two parameters, the first is a session handle, and the second is a string of HTTP response header information. With this function, the returned data is processed on its own. The return value is the data size. Curlopt_writefunction: A callback function with two parameters, the first is a session handle, and the second is a string of HTTP response header information. With this callback function, the response header information is processed on its own. The response header information is the entire string. Set return value to string length
- Curlinfo_effective_url-The last valid URL address
- Curlinfo_http_code-The last HTTP code received
- Curlinfo_filetime-the time that the document was retrieved remotely, and the return value is "1" if it cannot be obtained
- Curlinfo_total_time-time spent on the last transmission
- Curlinfo_namelookup_time-time consumed by name resolution
- Curlinfo_connect_time-time spent establishing a connection
- Curlinfo_pretransfer_time-the time to use from establishing a connection to preparing the transfer
- Curlinfo_starttransfer_time-The time it takes to start a connection to a transfer
- Curlinfo_redirect_time-the time that the redirect was used before the transaction transfer started
- Curlinfo_size_upload-Total number of uploaded data
- Curlinfo_size_download-The total value of the downloaded data volume
- Curlinfo_speed_download-Average Download speed
- Curlinfo_speed_upload-Average upload speed
- The size of the Curlinfo_header_size-header section
- Curlinfo_header_out-Send the requested string
- Curlinfo_request_size-size of the requested request in the HTTP request
- Curlinfo_ssl_verifyresult-Verify the result of the request by setting the SSL certificate returned by Curlopt_ssl_verifypeer
- Curlinfo_content_length_download-Length of downloaded content read from Content-length:field
- Curlinfo_content_length_upload-Description of upload content size
- Curlinfo_content_type-Content-type: Value of the downloaded content, NULL indicates that the server did not send a valid Content-type:header
List of macro definitions for the Curl library