All articles on this site areLi huaming himiOriginal, reprinted must be explicitly noted:
Reprinted from[Heimi gamedev block]Link: http://www.himigame.com/curl-libcurl/880.html
☞Click to subscribe☜The latest developments in this blog! Notify you of the latest blog in time!
Curlopt_header: if it is set to 1, the returned content contains the HTTP header;
Curlopt_followlocation: if it is set to 0, the system will not automatically redirect 301,302;
* Curlopt_infilesize: When you upload a file to a remote site, this option tells PHP the size of the file to be uploaded.
* Curlopt_verbose: If you want curl to report every unexpected event, set this option to a non-zero value.
* Curlopt_header: If you want to include a header in the output, set this option to a non-zero value.
* Curlopt_noprogress: if you do not display a process entry for Curl transmission in PHP, set this option to a non-zero value.
Note: PhP automatically sets this option to a non-zero value. You should change this option only for debugging purposes.
* Curlopt_nobody: if you do not want to include the body in the output, set this option to a non-zero value.
* Curlopt_failonerror: If you want PHP not to be displayed when an error occurs (HTTP code returns a value greater than or equal to 300), set this option to a non-zero value. By default, a normal page is returned, ignoring the code.
* Curlopt_upload: If you want PHP to prepare for upload, set this option to a non-zero value.
* Curlopt_post: If you want PHP to create a regular http post, set this option to a non-zero value. This post is a common application/X-WWW-from-urlencoded type, most of which are used by HTML forms.
* Curlopt_ftplistonly: set this option to a non-zero value. php will list the FTP directory names.
* Curlopt_ftpappend: set this option to a non-zero value. php overwrites the Remote Application file.
* Curlopt_netrc: set this option to a non-zero value. php will be in your ~. In the/netrc file, find the username and password of the remote site you want to establish a connection.
* Curlopt_followlocation: set this option to a non-zero value (like "Location:") header. The server will send it as part of the HTTP header (note that this is recursive, PHP will send the header like "Location ).
* Curlopt_put: sets this option to upload a file over HTTP as a non-zero value. To upload this file, you must set the curlopt_infile and curlopt_infilesize options.
* Curlopt_mute: set this option to a non-zero value. php will be completely silenced for the curl function.
* Curlopt_timeout: specifies the maximum number of seconds for a long integer.
* Curlopt_low_speed_limit: sets the number of long integers to control the number of bytes transmitted.
* Curlopt_low_speed_time: sets the number of long integers and controls the number of seconds to transmit the number of bytes specified by curlopt_low_speed_limit.
* Curlopt_resume_from: transmits a long integer parameter containing the byte offset address (the start form you want to transfer ).
* Curlopt_sslversion: transmits a long parameter containing the SSL version. By default, PHP will be determined by its own efforts. You must set it manually in more security scenarios.
* Curlopt_timecondition: transmits a long parameter to specify how to process the curlopt_timevalue parameter. You can set this parameter to timecond_ifmodsince or timecond_isunmodsince. This is only used for HTTP.
* Curlopt_timevalue: the number of seconds from January 1, to the present. This time will be used by the curlopt_timevalue option as the specified value, or by the default timecond_ifmodsince.
The values of the following options will be used as strings:
* Curlopt_url: the URL you want to retrieve with PHP. You can also set this option when initializing with the curl_init () function.
* Curlopt_userpwd: transmits a string in the format of [username]: [Password] to connect to PhP.
* Curlopt_proxyuserpwd: transmits a string in the format of [username]: [Password] to connect to the HTTP proxy.
* Curlopt_range: transmits a range you want to specify. It should be in the "X-Y" format, X or Y is excluded. HTTP shipping also supports several intervals separated by sentences (X-Y, N-M ).
* Curlopt_postfields: transmits a string of all data for the HTTP "Post" operation.
* Curlopt_referer: a string containing the "Referer" header in an HTTP request.
* Curlopt_useragent: a string containing the "User-Agent" header in an HTTP request.
* Curlopt_ftpport: transmits an IP address that contains the IP address used by the ftp "Post" command. This post Command tells the remote server to connect to the specified IP address. This string can be an IP address, a host name, a network interface Name (under UNIX), or '-' (using the default IP address of the system ).
* Curlopt_cookie: transmits a header connection containing the HTTP cookie.
* Curlopt_sslcert: transmits a string containing the PEM format certificate.
* Curlopt_sslcertpasswd: pass a password that includes the password required to use the curlopt_sslcert certificate.
* Curlopt_cookiefile: a string that transmits the name of a file containing cookie data. This cookie file can be in the Netscape format or heap containing the HTTP header in the file.
* Curlopt_customrequest: When an HTTP request is sent, a character is used by get or head. It is helpful to perform delete or other operations. Pass a string to be used instead of get or head when doing an HTTP request. this is useful for doing or another, more obscure, HTTP request.
Note: Do not do this before confirming that your server supports commands.
The following options require a file description (obtained by using the fopen () function ):
* Curlopt_file: This file will be the output file you placed for transfer. The default value is stdout.
* Curlopt_infile: this file is the input file you sent.
* Curlopt_writeheader: This file contains the header of your output.
* Curlopt_stderr: this file is written incorrectly, not stderr.