PHP cURL:curl_setopt():http://www.php.net/manual/en/function.curl-setopt.php
- Boolean Value
- CURLOPT_AUTOREFERER
- TRUE: 自動設定header中的Referer訊息
- CURLOPT_BINARYTRANSFER
- TRUE: 啟用CURLOPT_RETURNTRANSFER時將回傳獲取資料
- CURLOPT_COOKIESESSION
- TRUE:啟用curl時強迫忽略所有的cookie,僅讀取前一個session的session cookie。curl不管他是session或是cookie,預設會儲存及讀取所有cookie,session cookie是一個沒有過期的cookie值,指的是他們僅會存在於目前的session當中
- CURLOPT_CERTINFO
- TRUE: 安全傳輸時輸出SSL驗證資訊到STDERR
- CURLOPT_CRLF
- 傳輸時將unix換行符號轉換為CRLF換行
- CURLOPT_DNS_USE_GLOBAL_CACHE
- 使用全域DNS快取,這個選項不是執行緒安全(thread-safe)的,且預設為True
- CURLOPT_FAILONERROR
- CURLOPT_FILETIME
- CURLOPT_FOLLOWLOCATION
- CURLOPT_FORBID_REUSE
- CURLOPT_FRESH_CONNECT
- CURLOPT_FTP_USE_EPRT
- CURLOPT_FTP_USE_EPSV
- CURLOPT_FTP_CREATE_MISSING_DIRS
- CURLOPT_FTPAPPEND
- CURLOPT_FTPASCII
- CURLOPT_FTPLISTONLY
- CURLOPT_HEADER
- TRUE:輸出時包含header標頭
- CURLINFO_HEADER_OUT
- CURLOPT_HTTPGET
- CURLOPT_HTTPPROXYTUNNEL
- CURLOPT_MUTE
- CURLOPT_NETRC
- CURLOPT_NOBODY
- CURLOPT_NOPROGRESS
- CURLOPT_NOSIGNAL
- CURLOPT_POST
- CURLOPT_PUT
- CURLOPT_RETURNTRANSFER
- CURLOPT_SSL_VERIFYPEER
- CURLOPT_TRANSFERTEXT
- CURLOPT_UNRESTRICTED_AUTH
- CURLOPT_UPLOAD
- CURLOPT_VERBOSE
- CURLOPT_AUTOREFERER
- Integer
- CURLOPT_BUFFERSIZE
- CURLOPT_CLOSEPOLICY
- CURLOPT_CONNECTTIMEOUT
- CURLOPT_CONNECTTIMEOUT_MS
- CURLOPT_DNS_CACHE_TIMEOUT
- CURLOPT_FTPSSLAUTH
- CURLOPT_HTTP_VERSION
- CURLOPT_HTTPAUTH
- CURLOPT_INFILESIZE
- CURLOPT_LOW_SPEED_LIMIT
- CURLOPT_LOW_SPEED_TIME
- CURLOPT_MAXCONNECTS
- CURLOPT_MAXREDIRS
- CURLOPT_PORT
- CURLOPT_PROTOCOLS
- CURLOPT_PROXYAUTH
- CURLOPT_PROXYPORT
- CURLOPT_PROXYTYPE
- CURLOPT_REDIR_PROTOCOLS
- CURLOPT_RESUME_FROM
- CURLOPT_SSL_VERIFYHOST
- CURLOPT_SSLVERSION
- CURLOPT_TIMECONDITION
- CURLOPT_TIMEOUT
- CURLOPT_TIMEOUT_MS
- CURLOPT_TIMEVALUE
- CURLOPT_MAX_RECV_SPEED_LARGE
- CURLOPT_MAX_SEND_SPEED_LARGE
- String
- CURLOPT_CAINFO
- CURLOPT_CAPATH
- CURLOPT_COOKIE
- CURLOPT_COOKIEFILE
- CURLOPT_COOKIEJAR
- CURLOPT_CUSTOMREQUEST
- CURLOPT_EGDSOCKET
- CURLOPT_ENCODING
- CURLOPT_FTPPORT
- CURLOPT_INTERFACE
- CURLOPT_KRB4LEVEL
- CURLOPT_POSTFIELDS
- CURLOPT_PROXY
- CURLOPT_PROXYUSERPWD
- CURLOPT_RANDOM_FILE
- CURLOPT_RANGE
- CURLOPT_REFERER
- CURLOPT_SSL_CIPHER_LIST
- CURLOPT_SSLCERT
- CURLOPT_SSLCERTPASSWD
- CURLOPT_SSLCERTTYPE
- CURLOPT_SSLENGINE
- CURLOPT_SSLENGINE_DEFAULT
- CURLOPT_SSLKEY
- CURLOPT_SSLKEYPASSWD
- CURLOPT_SSLKEYTYPE
- CURLOPT_URL
- 網址字串:抓取的URL網址,在初始cURL(curl_init();)後設定
- CURLOPT_USERAGENT
- 請求HTTP request中的代理人資訊
- CURLOPT_USERPWD
- Stream
- CURLOPT_FILE
- CURLOPT_INFILE
- CURLOPT_STDERR
- CURLOPT_WRITEHEADER
- String
- CURLOPT_HEADERFUNCTION
- CURLOPT_PASSWDFUNCTION
- CURLOPT_PROGRESSFUNCTION
- CURLOPT_READFUNCTION
- CURLOPT_WRITEFUNCTION
沒有留言:
張貼留言