List of Curl libraries together with 17 functions
- Curl_close: Turn off Curl session
- Curl_copy_handle: Copy a curl session handle, and at the same time 3 copy all of its parameters
- Curl_errno: Returns the last error code
- Curl_error: Returns a string describing the last error describing the current session
- Curl_exec: Running 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: Run a multi-handle curl session
- Curl_multi_getcontent: Returns the contents of a handle after it is run, assuming that the 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 number
Frequently use the SET options boolean option
- Curlopt_autoreferer: When the returned information header contains a steering message. Set up the forward connection on your own initiative
- Curlopt_binarytransfer:truetoreturntherawoutputwhencurlopt_returntransferisused.
- Curlopt_cookiesession: Flag for the new cookie session. Ignore previously set cookie sessions
- 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 change 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 complete 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: Include 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 include document information.
- Curlopt_noprogress: Disables process-level transfers. PHP's own initiative to set the 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, set curlopt_infile and curlopt_infilesize at the same time
- Curlopt_returntransfer: Returns a string instead of calling Curl_exec () directly after the output
- CURLOPT_SSL_VERIFYPEER:SSL Authentication on
- Curlopt_unrestricted_auth: links are appended with username and password. Set curlopt_followlocation at the same time
- Curlopt_upload: Ready 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 websites 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_proxy AUTH: Proxy Server Authentication Curlopt_proxyport: Agent serverport & nbsp Curlopt_proxytype: Proxy server type Curlopt_timeout:curl function max run time string option
- COOKIE information in Set-cookie in curlopt_cookie:http header
- Curlopt_cookiefile: Files that include cookie information, the format of the cookie file can be in the Netscape format, or just the format of the HTTP header
- Curlopt_cookiejar: file that stores cookie information after connection ends
- Curlopt_customrequest: Define the request header yourself, using the 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: Agent authentication username and password
- Curlopt_range: Returns the range of data, in bytes
- Curlopt_referer: Forward Link
- Curlopt_url: The URL address to connect to. Ability to 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: Define the request header information yourselfcan 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 be written to the file callback function option Curlopt_headerfunction: A callback function with two parameters, the first is the session handle. 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 returned by row. Sets the return value to the string length.
Curlopt_readfunction: A callback function with two parameters. The first is the session handle, and the second is the 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 the session handle, and the second is the 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 to obtain a document remotely, assuming it cannot be obtained. The return value is "1"
- 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 used to start the connection to the start of the 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