CURLOPT_HEADER: If it is set to 1, the returned content will contain the user name and password of the remote site where you want to establish a connection in the rc file.
*CURLOPT_FOLLOWLOCATION: Set this option to a header with a non-zero value (such as "LOCATION:"), and the server will send it as part of the HTTP header (note that this is recursive, and PHP will send a header with the shape of "Location:").
*CURLOPT_PUT: Set this option to a non-zero value to upload files using HTTP. To upload this file, the CURLOPT_INFILE and CURLOPT_INFILESIZE options must be set.
*CURLOPT_MUTE: Set this option to a non-zero value, and PHP will be completely silent about the CURL function.
*CURLOPT_TIMEOUT: Set a long integer as the maximum duration of several seconds.
*CURLOPT_LOW_SPEED_LIMIT: Set a long integer to control how many bytes are transmitted.
*CURLOPT_LOW_SPEED_TIME: set a long integer to control how many seconds to transfer the number of bytes specified by CURLOPT_LOW_SPEED_LIMIT.
*CURLOPT_RESUME_FROM: pass a long parameter with byte offset address (the starting form to be transferred to).
*CURLOPT_SSLVERSION: pass a long parameter containing SSL version. The default PHP will be decided by yourself, and you have to set it manually to be more secure.
*CURLOPT_TIMECONDITION: pass a long parameter to specify how to handle the curl opt _ timeout parameter. You can set this parameter to TIMECOND_IFMODSINCE or TIMECOND_ISUNMODSINCE. This only applies to HTTP.
* curl opt _ timeout: the number of seconds since 1970- 1- 1. This time will be used as the specified value by the curl opt _ time option or by the default TIMECOND_IFMODSINCE.
The values of the following options will be used as strings:
*CURLOPT_URL: This is the URL address you want to retrieve with PHP. You can also set this option when initializing with curl_init () function.
*CURLOPT_USERPWD: pass a string in the style of [username]:[password] to connect to PHP.
*CURLOPT_PROXYUSERPWD: pass a string in the form of [username]:[password] to connect to the HTTP proxy.
*CURLOPT_RANGE: pass the range to be specified. It should be in "X-Y" format, excluding x or y. HTTP transmission also supports several intervals, separated by segments (X-Y, N-M).
*CURLOPT_POSTFIELDS: pass a string as all the data of the HTTP“POST "operation.
* curl opt _ REFERER: a string containing the "referer" header in the HTTP request.
* curlopt _ useragent: a string containing the "user-agent" header in the HTTP request.
*CURLOPT_FTPPORT: Pass an IP address containing the IP address used by the "FTPPORT" instruction. This POST instruction tells the remote server to connect to the IP address we specified. The string can be IP address, host name, network interface name (under UNIX) or'-'(using the system default IP address).
*CURLOPT_COOKIE: Pass the header connection containing HTTP cookie.
*CURLOPT_SSLCERT: pass a string containing a certificate in PEM format.
*CURLOPT_SSLCERTPASSWD: pass the password containing the password required to use the CURLOPT_SSLCERT certificate.
*CURLOPT_COOKIEFILE: passes a string containing the file name of cookie data. This cookie file can be in Netscape format or an HTTP-style header stored in the file.
*CURLOPT_CUSTOMREQUEST: When making an HTTP request, pass a character to be used by GET or HEAD. In order to delete or perform other operations, it is beneficial to pass a string to be used instead of get or head when executing an http request. This is useful for making or making another more ambiguous http request.
Note: Do not do this until you have confirmed that your server supports this command.
The following options require a file description (obtained by using the fopen () function):
*CURLOPT_FILE: This file will be the output file you put and transmit, and the default is STDOUT.
*CURLOPT_INFILE: This file is the input file you sent.
*CURLOPT_WRITEHEADER: This file contains the output header.
*CURLOPT_STDERR: This file contains errors, not STDERR.
Reprinted for reference only.