public class CurlModule extends AbstractQuercusModule
PHP_INI_ALL, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_USER
Constructor and Description |
---|
CurlModule() |
Modifier and Type | Method and Description |
---|---|
static void |
curl_close(Env env,
CurlResource curl)
Closes this cURL object.
|
static CurlResource |
curl_copy_handle(Env env,
CurlResource curl)
Returns a copy of this resource.
|
static Value |
curl_errno(Env env,
CurlResource curl)
Returns the error code from the last operation.
|
static Value |
curl_error(Env env,
CurlResource curl)
Returns the error string from the last operation.
|
static Value |
curl_exec(Env env,
CurlResource curl) |
static Value |
curl_getinfo(Env env,
CurlResource curl,
Value option)
Returns information about the last request.
|
static CurlResource |
curl_init(Env env,
java.lang.String url)
Returns a cURL handle.
|
static int |
curl_multi_add_handle(Env env,
CurlMultiResource multi,
CurlResource curl)
int curl_multi_add_handle ( resource $mh , resource $ch )
|
static void |
curl_multi_close(Env env,
CurlMultiResource multi)
void curl_multi_close ( resource $mh )
|
static int |
curl_multi_exec(Env env,
CurlMultiResource multi,
Value stillRunning)
int curl_multi_exec ( resource $mh , int &$still_running )
|
static Value |
curl_multi_getcontent(Env env,
CurlResource curl)
string curl_multi_getcontent ( resource $ch )
|
static Value |
curl_multi_info_read(Env env,
CurlMultiResource multi,
Value msgsInQueue)
XXX: not documented by PHP
|
static CurlMultiResource |
curl_multi_init(Env env)
resource curl_multi_init ( void )
|
static int |
curl_multi_remove_handle(Env env,
CurlMultiResource multi,
CurlResource curl)
int curl_multi_remove_handle ( resource $mh , resource $ch )
|
static int |
curl_multi_select(Env env,
CurlMultiResource multi,
Value timeout)
int curl_multi_select ( resource $mh [, float $timeout = 1.0 ] )
|
static BooleanValue |
curl_setopt_array(Env env,
CurlResource curl,
ArrayValue options)
Sets an array of options.
|
static BooleanValue |
curl_setopt(Env env,
CurlResource curl,
int option,
Value value)
Sets a cURL option.
|
static ArrayValue |
curl_version(Env env,
Value age)
Returns the version of this cURL implementation.
|
java.lang.String[] |
getLoadedExtensions()
Returns the extensions loaded by the module.
|
addConstant, addConstant, addConstant, getConstMap, getIniDefinitions
public static final int CURLAUTH_ANY
public static final int CURLAUTH_ANYSAFE
public static final int CURLAUTH_BASIC
public static final int CURLAUTH_DIGEST
public static final int CURLAUTH_GSSNEGOTIATE
public static final int CURLAUTH_NTLM
public static final int CURLCLOSEPOLICY_CALLBACK
public static final int CURLCLOSEPOLICY_LEAST_RECENTLY_USED
public static final int CURLCLOSEPOLICY_LEAST_TRAFFIC
public static final int CURLCLOSEPOLICY_OLDEST
public static final int CURLCLOSEPOLICY_SLOWEST
public static final int CURLE_ABORTED_BY_CALLBACK
public static final int CURLE_BAD_CALLING_ORDER
public static final int CURLE_BAD_CONTENT_ENCODING
public static final int CURLE_BAD_FUNCTION_ARGUMENT
public static final int CURLE_BAD_PASSWORD_ENTERED
public static final int CURLE_COULDNT_CONNECT
public static final int CURLE_COULDNT_RESOLVE_HOST
public static final int CURLE_COULDNT_RESOLVE_PROXY
public static final int CURLE_FAILED_INIT
public static final int CURLE_FILE_COULDNT_READ_FILE
public static final int CURLE_FILESIZE_EXCEEDED
public static final int CURLE_FTP_ACCESS_DENIED
public static final int CURLE_FTP_BAD_DOWNLOAD_RESUME
public static final int CURLE_FTP_CANT_GET_HOST
public static final int CURLE_FTP_CANT_RECONNECT
public static final int CURLE_FTP_COULDNT_GET_SIZE
public static final int CURLE_FTP_COULDNT_RETR_FILE
public static final int CURLE_FTP_COULDNT_SET_ASCII
public static final int CURLE_FTP_COULDNT_SET_BINARY
public static final int CURLE_FTP_COULDNT_STOR_FILE
public static final int CURLE_FTP_COULDNT_USE_REST
public static final int CURLE_FTP_PORT_FAILED
public static final int CURLE_FTP_QUOTE_ERROR
public static final int CURLE_FTP_SSL_FAILED
public static final int CURLE_FTP_USER_PASSWORD_INCORRECT
public static final int CURLE_FTP_WEIRD_227_FORMAT
public static final int CURLE_FTP_WEIRD_PASS_REPLY
public static final int CURLE_FTP_WEIRD_PASV_REPLY
public static final int CURLE_FTP_WEIRD_SERVER_REPLY
public static final int CURLE_FTP_WEIRD_USER_REPLY
public static final int CURLE_FTP_WRITE_ERROR
public static final int CURLE_FUNCTION_NOT_FOUND
public static final int CURLE_GOT_NOTHING
public static final int CURLE_HTTP_NOT_FOUND
public static final int CURLE_HTTP_PORT_FAILED
public static final int CURLE_HTTP_POST_ERROR
public static final int CURLE_HTTP_RANGE_ERROR
public static final int CURLE_LDAP_CANNOT_BIND
public static final int CURLE_LDAP_INVALID_URL
public static final int CURLE_LDAP_SEARCH_FAILED
public static final int CURLE_LIBRARY_NOT_FOUND
public static final int CURLE_MALFORMAT_USER
public static final int CURLE_OBSOLETE
public static final int CURLE_OK
public static final int CURLE_OPERATION_TIMEOUTED
public static final int CURLE_OUT_OF_MEMORY
public static final int CURLE_PARTIAL_FILE
public static final int CURLE_READ_ERROR
public static final int CURLE_RECV_ERROR
public static final int CURLE_SEND_ERROR
public static final int CURLE_SHARE_IN_USE
public static final int CURLE_SSL_CACERT
public static final int CURLE_SSL_CERTPROBLEM
public static final int CURLE_SSL_CIPHER
public static final int CURLE_SSL_CONNECT_ERROR
public static final int CURLE_SSL_ENGINE_NOTFOUND
public static final int CURLE_SSL_ENGINE_SETFAILED
public static final int CURLE_SSL_PEER_CERTIFICATE
public static final int CURLE_TELNET_OPTION_SYNTAX
public static final int CURLE_TOO_MANY_REDIRECTS
public static final int CURLE_UNKNOWN_TELNET_OPTION
public static final int CURLE_UNSUPPORTED_PROTOCOL
public static final int CURLE_URL_MALFORMAT
public static final int CURLE_URL_MALFORMAT_USER
public static final int CURLE_WRITE_ERROR
public static final int CURLFTPAUTH_DEFAULT
public static final int CURLFTPAUTH_SSL
public static final int CURLFTPAUTH_TLS
public static final int CURLFTPSSL_ALL
public static final int CURLFTPSSL_CONTROL
public static final int CURLFTPSSL_NONE
public static final int CURLFTPSSL_TRY
public static final int CURL_HTTP_VERSION_1_0
public static final int CURL_HTTP_VERSION_1_1
public static final int CURL_HTTP_VERSION_NONE
public static final int CURLINFO_CONNECT_TIME
public static final int CURLINFO_CONTENT_LENGTH_DOWNLOAD
public static final int CURLINFO_CONTENT_LENGTH_UPLOAD
public static final int CURLINFO_CONTENT_TYPE
public static final int CURLINFO_EFFECTIVE_URL
public static final int CURLINFO_FILETIME
public static final int CURLINFO_HEADER_OUT
public static final int CURLINFO_HEADER_SIZE
public static final int CURLINFO_HTTP_CODE
public static final int CURLINFO_NAMELOOKUP_TIME
public static final int CURLINFO_PRETRANSFER_TIME
public static final int CURLINFO_PRIVATE
public static final int CURLINFO_REDIRECT_COUNT
public static final int CURLINFO_REDIRECT_TIME
public static final int CURLINFO_REQUEST_SIZE
public static final int CURLINFO_SIZE_DOWNLOAD
public static final int CURLINFO_SIZE_UPLOAD
public static final int CURLINFO_SPEED_DOWNLOAD
public static final int CURLINFO_SPEED_UPLOAD
public static final int CURLINFO_SSL_VERIFYRESULT
public static final int CURLINFO_STARTTRANSFER_TIME
public static final int CURLINFO_TOTAL_TIME
public static final int CURLM_BAD_EASY_HANDLE
public static final int CURLM_BAD_HANDLE
public static final int CURLM_CALL_MULTI_PERFORM
public static final int CURLM_INTERNAL_ERROR
public static final int CURLM_OK
public static final int CURLM_OUT_OF_MEMORY
public static final int CURLMSG_DONE
public static final int CURL_NETRC_IGNORED
public static final int CURL_NETRC_OPTIONAL
public static final int CURL_NETRC_REQUIRED
public static final int CURLOPT_AUTOREFERER
public static final int CURLOPT_BINARYTRANSFER
public static final int CURLOPT_BUFFERSIZE
public static final int CURLOPT_CAINFO
public static final int CURLOPT_CAPATH
public static final int CURLOPT_CLOSEPOLICY
public static final int CURLOPT_CONNECTTIMEOUT
public static final int CURLOPT_CONNECTTIMEOUT_MS
public static final int CURLOPT_COOKIE
public static final int CURLOPT_COOKIEFILE
public static final int CURLOPT_COOKIEJAR
public static final int CURLOPT_COOKIESESSION
public static final int CURLOPT_CRLF
public static final int CURLOPT_CUSTOMREQUEST
public static final int CURLOPT_DNS_CACHE_TIMEOUT
public static final int CURLOPT_DNS_USE_GLOBAL_CACHE
public static final int CURLOPT_EGDSOCKET
public static final int CURLOPT_ENCODING
public static final int CURLOPT_FAILONERROR
public static final int CURLOPT_FILE
public static final int CURLOPT_FILETIME
public static final int CURLOPT_FOLLOWLOCATION
public static final int CURLOPT_FORBID_REUSE
public static final int CURLOPT_FRESH_CONNECT
public static final int CURLOPT_FTPAPPEND
public static final int CURLOPT_FTPASCII
public static final int CURLOPT_FTP_CREATE_MISSING_DIRS
public static final int CURLOPT_FTPLISTONLY
public static final int CURLOPT_FTPPORT
public static final int CURLOPT_FTP_SSL
public static final int CURLOPT_FTPSSLAUTH
public static final int CURLOPT_FTP_USE_EPRT
public static final int CURLOPT_FTP_USE_EPSV
public static final int CURLOPT_HEADER
public static final int CURLOPT_HEADERFUNCTION
public static final int CURLOPT_HTTP200ALIASES
public static final int CURLOPT_HTTPAUTH
public static final int CURLOPT_HTTPGET
public static final int CURLOPT_HTTPHEADER
public static final int CURLOPT_HTTPPROXYTUNNEL
public static final int CURLOPT_HTTP_VERSION
public static final int CURLOPT_INFILE
public static final int CURLOPT_INFILESIZE
public static final int CURLOPT_INTERFACE
public static final int CURLOPT_KRB4LEVEL
public static final int CURLOPT_LOW_SPEED_LIMIT
public static final int CURLOPT_LOW_SPEED_TIME
public static final int CURLOPT_MAXCONNECTS
public static final int CURLOPT_MAXREDIRS
public static final int CURLOPT_MUTE
public static final int CURLOPT_NETRC
public static final int CURLOPT_NOBODY
public static final int CURLOPT_NOPROGRESS
public static final int CURLOPT_NOSIGNAL
public static final int CURLOPT_PASSWDFUNCTION
public static final int CURLOPT_PORT
public static final int CURLOPT_POST
public static final int CURLOPT_POSTFIELDS
public static final int CURLOPT_POSTQUOTE
public static final int CURLOPT_PRIVATE
public static final int CURLOPT_PROGRESSFUNCTION
public static final int CURLOPT_PROXY
public static final int CURLOPT_PROXYAUTH
public static final int CURLOPT_PROXYPORT
public static final int CURLOPT_PROXYTYPE
public static final int CURLOPT_PROXYUSERPWD
public static final int CURLOPT_PUT
public static final int CURLOPT_QUOTE
public static final int CURLOPT_RANDOM_FILE
public static final int CURLOPT_RANGE
public static final int CURLOPT_READFUNCTION
public static final int CURLOPT_REFERER
public static final int CURLOPT_RESUME_FROM
public static final int CURLOPT_RETURNTRANSFER
public static final int CURLOPT_SSLCERT
public static final int CURLOPT_SSLCERTPASSWD
public static final int CURLOPT_SSLCERTTYPE
public static final int CURLOPT_SSL_CIPHER_LIST
public static final int CURLOPT_SSLENGINE
public static final int CURLOPT_SSLENGINE_DEFAULT
public static final int CURLOPT_SSLKEY
public static final int CURLOPT_SSLKEYPASSWD
public static final int CURLOPT_SSLKEYTYPE
public static final int CURLOPT_SSL_VERIFYHOST
public static final int CURLOPT_SSL_VERIFYPEER
public static final int CURLOPT_SSLVERSION
public static final int CURLOPT_STDERR
public static final int CURLOPT_TCP_NODELAY
public static final int CURLOPT_TIMECONDITION
public static final int CURLOPT_TIMEOUT
public static final int CURLOPT_TIMEOUT_MS
public static final int CURLOPT_TIMEVALUE
public static final int CURLOPT_TRANSFERTEXT
public static final int CURLOPT_UNRESTRICTED_AUTH
public static final int CURLOPT_UPLOAD
public static final int CURLOPT_URL
public static final int CURLOPT_USERAGENT
public static final int CURLOPT_USERPWD
public static final int CURLOPT_VERBOSE
public static final int CURLOPT_WRITEFUNCTION
public static final int CURLOPT_WRITEHEADER
public static final int CURLPROXY_HTTP
public static final int CURLPROXY_SOCKS5
public static final int CURL_TIMECOND_IFMODSINCE
public static final int CURL_TIMECOND_IFUNMODSINCE
public static final int CURL_TIMECOND_LASTMOD
public static final int CURL_VERSION_IPV6
public static final int CURL_VERSION_KERBEROS4
public static final int CURL_VERSION_LIBZ
public static final int CURLVERSION_NOW
public static final int CURL_VERSION_SSL
public static final int CURL_SSLVERSION_DEFAULT
public static final int CURL_SSLVERSION_TLSv1
public static final int CURL_SSLVERSION_SSLv2
public static final int CURL_SSLVERSION_SSLv3
public static final int CURL_SSLVERSION_TLSv1_0
public static final int CURL_SSLVERSION_TLSv1_1
public static final int CURL_SSLVERSION_TLSv1_2
public java.lang.String[] getLoadedExtensions()
AbstractQuercusModule
getLoadedExtensions
in interface QuercusModule
getLoadedExtensions
in class AbstractQuercusModule
public static void curl_close(Env env, CurlResource curl)
env
- curl
- public static CurlResource curl_copy_handle(Env env, CurlResource curl)
env
- curl
- public static Value curl_errno(Env env, CurlResource curl)
env
- curl
- public static Value curl_error(Env env, CurlResource curl)
env
- curl
- public static Value curl_exec(Env env, CurlResource curl)
env
- curl
- public static Value curl_getinfo(Env env, CurlResource curl, Value option)
env
- curl
- option
- type of information to returnpublic static CurlResource curl_init(Env env, java.lang.String url)
env
- url
- public static int curl_multi_add_handle(Env env, CurlMultiResource multi, CurlResource curl)
public static void curl_multi_close(Env env, CurlMultiResource multi)
public static int curl_multi_exec(Env env, CurlMultiResource multi, Value stillRunning)
public static Value curl_multi_getcontent(Env env, CurlResource curl)
public static Value curl_multi_info_read(Env env, CurlMultiResource multi, Value msgsInQueue)
env
- curls
- public static CurlMultiResource curl_multi_init(Env env)
public static int curl_multi_remove_handle(Env env, CurlMultiResource multi, CurlResource curl)
public static int curl_multi_select(Env env, CurlMultiResource multi, Value timeout)
public static BooleanValue curl_setopt_array(Env env, CurlResource curl, ArrayValue options)
env
- curl
- options
- public static BooleanValue curl_setopt(Env env, CurlResource curl, int option, Value value)
env
- curl
- option
- value
- public static ArrayValue curl_version(Env env, Value age)
env
- version
-