com.caucho.quercus.lib.curl
Class CurlModule

java.lang.Object
  extended by com.caucho.quercus.module.AbstractQuercusModule
      extended by com.caucho.quercus.lib.curl.CurlModule
All Implemented Interfaces:
QuercusModule

public class CurlModule
extends AbstractQuercusModule


Field Summary
static int CURL_HTTP_VERSION_1_0
           
static int CURL_HTTP_VERSION_1_1
           
static int CURL_HTTP_VERSION_NONE
           
static int CURL_NETRC_IGNORED
           
static int CURL_NETRC_OPTIONAL
           
static int CURL_NETRC_REQUIRED
           
static int CURL_TIMECOND_IFMODSINCE
           
static int CURL_TIMECOND_IFUNMODSINCE
           
static int CURL_TIMECOND_LASTMOD
           
static int CURL_VERSION_IPV6
           
static int CURL_VERSION_KERBEROS4
           
static int CURL_VERSION_LIBZ
           
static int CURL_VERSION_SSL
           
static int CURLAUTH_ANY
           
static int CURLAUTH_ANYSAFE
           
static int CURLAUTH_BASIC
           
static int CURLAUTH_DIGEST
           
static int CURLAUTH_GSSNEGOTIATE
           
static int CURLAUTH_NTLM
           
static int CURLCLOSEPOLICY_CALLBACK
           
static int CURLCLOSEPOLICY_LEAST_RECENTLY_USED
           
static int CURLCLOSEPOLICY_LEAST_TRAFFIC
           
static int CURLCLOSEPOLICY_OLDEST
           
static int CURLCLOSEPOLICY_SLOWEST
           
static int CURLE_ABORTED_BY_CALLBACK
           
static int CURLE_BAD_CALLING_ORDER
           
static int CURLE_BAD_CONTENT_ENCODING
           
static int CURLE_BAD_FUNCTION_ARGUMENT
           
static int CURLE_BAD_PASSWORD_ENTERED
           
static int CURLE_COULDNT_CONNECT
           
static int CURLE_COULDNT_RESOLVE_HOST
           
static int CURLE_COULDNT_RESOLVE_PROXY
           
static int CURLE_FAILED_INIT
           
static int CURLE_FILE_COULDNT_READ_FILE
           
static int CURLE_FILESIZE_EXCEEDED
           
static int CURLE_FTP_ACCESS_DENIED
           
static int CURLE_FTP_BAD_DOWNLOAD_RESUME
           
static int CURLE_FTP_CANT_GET_HOST
           
static int CURLE_FTP_CANT_RECONNECT
           
static int CURLE_FTP_COULDNT_GET_SIZE
           
static int CURLE_FTP_COULDNT_RETR_FILE
           
static int CURLE_FTP_COULDNT_SET_ASCII
           
static int CURLE_FTP_COULDNT_SET_BINARY
           
static int CURLE_FTP_COULDNT_STOR_FILE
           
static int CURLE_FTP_COULDNT_USE_REST
           
static int CURLE_FTP_PORT_FAILED
           
static int CURLE_FTP_QUOTE_ERROR
           
static int CURLE_FTP_SSL_FAILED
           
static int CURLE_FTP_USER_PASSWORD_INCORRECT
           
static int CURLE_FTP_WEIRD_227_FORMAT
           
static int CURLE_FTP_WEIRD_PASS_REPLY
           
static int CURLE_FTP_WEIRD_PASV_REPLY
           
static int CURLE_FTP_WEIRD_SERVER_REPLY
           
static int CURLE_FTP_WEIRD_USER_REPLY
           
static int CURLE_FTP_WRITE_ERROR
           
static int CURLE_FUNCTION_NOT_FOUND
           
static int CURLE_GOT_NOTHING
           
static int CURLE_HTTP_NOT_FOUND
           
static int CURLE_HTTP_PORT_FAILED
           
static int CURLE_HTTP_POST_ERROR
           
static int CURLE_HTTP_RANGE_ERROR
           
static int CURLE_LDAP_CANNOT_BIND
           
static int CURLE_LDAP_INVALID_URL
           
static int CURLE_LDAP_SEARCH_FAILED
           
static int CURLE_LIBRARY_NOT_FOUND
           
static int CURLE_MALFORMAT_USER
           
static int CURLE_OBSOLETE
           
static int CURLE_OK
           
static int CURLE_OPERATION_TIMEOUTED
           
static int CURLE_OUT_OF_MEMORY
           
static int CURLE_PARTIAL_FILE
           
static int CURLE_READ_ERROR
           
static int CURLE_RECV_ERROR
           
static int CURLE_SEND_ERROR
           
static int CURLE_SHARE_IN_USE
           
static int CURLE_SSL_CACERT
           
static int CURLE_SSL_CERTPROBLEM
           
static int CURLE_SSL_CIPHER
           
static int CURLE_SSL_CONNECT_ERROR
           
static int CURLE_SSL_ENGINE_NOTFOUND
           
static int CURLE_SSL_ENGINE_SETFAILED
           
static int CURLE_SSL_PEER_CERTIFICATE
           
static int CURLE_TELNET_OPTION_SYNTAX
           
static int CURLE_TOO_MANY_REDIRECTS
           
static int CURLE_UNKNOWN_TELNET_OPTION
           
static int CURLE_UNSUPPORTED_PROTOCOL
           
static int CURLE_URL_MALFORMAT
           
static int CURLE_URL_MALFORMAT_USER
           
static int CURLE_WRITE_ERROR
           
static int CURLFTPAUTH_DEFAULT
           
static int CURLFTPAUTH_SSL
           
static int CURLFTPAUTH_TLS
           
static int CURLFTPSSL_ALL
           
static int CURLFTPSSL_CONTROL
           
static int CURLFTPSSL_NONE
           
static int CURLFTPSSL_TRY
           
static int CURLINFO_CONNECT_TIME
           
static int CURLINFO_CONTENT_LENGTH_DOWNLOAD
           
static int CURLINFO_CONTENT_LENGTH_UPLOAD
           
static int CURLINFO_CONTENT_TYPE
           
static int CURLINFO_EFFECTIVE_URL
           
static int CURLINFO_FILETIME
           
static int CURLINFO_HEADER_OUT
           
static int CURLINFO_HEADER_SIZE
           
static int CURLINFO_HTTP_CODE
           
static int CURLINFO_NAMELOOKUP_TIME
           
static int CURLINFO_PRETRANSFER_TIME
           
static int CURLINFO_PRIVATE
           
static int CURLINFO_REDIRECT_COUNT
           
static int CURLINFO_REDIRECT_TIME
           
static int CURLINFO_REQUEST_SIZE
           
static int CURLINFO_SIZE_DOWNLOAD
           
static int CURLINFO_SIZE_UPLOAD
           
static int CURLINFO_SPEED_DOWNLOAD
           
static int CURLINFO_SPEED_UPLOAD
           
static int CURLINFO_SSL_VERIFYRESULT
           
static int CURLINFO_STARTTRANSFER_TIME
           
static int CURLINFO_TOTAL_TIME
           
static int CURLM_BAD_EASY_HANDLE
           
static int CURLM_BAD_HANDLE
           
static int CURLM_CALL_MULTI_PERFORM
           
static int CURLM_INTERNAL_ERROR
           
static int CURLM_OK
           
static int CURLM_OUT_OF_MEMORY
           
static int CURLMSG_DONE
           
static int CURLOPT_AUTOREFERER
           
static int CURLOPT_BINARYTRANSFER
           
static int CURLOPT_BUFFERSIZE
           
static int CURLOPT_CAINFO
           
static int CURLOPT_CAPATH
           
static int CURLOPT_CLOSEPOLICY
           
static int CURLOPT_CONNECTTIMEOUT
           
static int CURLOPT_CONNECTTIMEOUT_MS
           
static int CURLOPT_COOKIE
           
static int CURLOPT_COOKIEFILE
           
static int CURLOPT_COOKIEJAR
           
static int CURLOPT_COOKIESESSION
           
static int CURLOPT_CRLF
           
static int CURLOPT_CUSTOMREQUEST
           
static int CURLOPT_DNS_CACHE_TIMEOUT
           
static int CURLOPT_DNS_USE_GLOBAL_CACHE
           
static int CURLOPT_EGDSOCKET
           
static int CURLOPT_ENCODING
           
static int CURLOPT_FAILONERROR
           
static int CURLOPT_FILE
           
static int CURLOPT_FILETIME
           
static int CURLOPT_FOLLOWLOCATION
           
static int CURLOPT_FORBID_REUSE
           
static int CURLOPT_FRESH_CONNECT
           
static int CURLOPT_FTP_CREATE_MISSING_DIRS
           
static int CURLOPT_FTP_SSL
           
static int CURLOPT_FTP_USE_EPRT
           
static int CURLOPT_FTP_USE_EPSV
           
static int CURLOPT_FTPAPPEND
           
static int CURLOPT_FTPASCII
           
static int CURLOPT_FTPLISTONLY
           
static int CURLOPT_FTPPORT
           
static int CURLOPT_FTPSSLAUTH
           
static int CURLOPT_HEADER
           
static int CURLOPT_HEADERFUNCTION
           
static int CURLOPT_HTTP_VERSION
           
static int CURLOPT_HTTP200ALIASES
           
static int CURLOPT_HTTPAUTH
           
static int CURLOPT_HTTPGET
           
static int CURLOPT_HTTPHEADER
           
static int CURLOPT_HTTPPROXYTUNNEL
           
static int CURLOPT_INFILE
           
static int CURLOPT_INFILESIZE
           
static int CURLOPT_INTERFACE
           
static int CURLOPT_KRB4LEVEL
           
static int CURLOPT_LOW_SPEED_LIMIT
           
static int CURLOPT_LOW_SPEED_TIME
           
static int CURLOPT_MAXCONNECTS
           
static int CURLOPT_MAXREDIRS
           
static int CURLOPT_MUTE
           
static int CURLOPT_NETRC
           
static int CURLOPT_NOBODY
           
static int CURLOPT_NOPROGRESS
           
static int CURLOPT_NOSIGNAL
           
static int CURLOPT_PASSWDFUNCTION
           
static int CURLOPT_PORT
           
static int CURLOPT_POST
           
static int CURLOPT_POSTFIELDS
           
static int CURLOPT_POSTQUOTE
           
static int CURLOPT_PRIVATE
           
static int CURLOPT_PROGRESSFUNCTION
           
static int CURLOPT_PROXY
           
static int CURLOPT_PROXYAUTH
           
static int CURLOPT_PROXYPORT
           
static int CURLOPT_PROXYTYPE
           
static int CURLOPT_PROXYUSERPWD
           
static int CURLOPT_PUT
           
static int CURLOPT_QUOTE
           
static int CURLOPT_RANDOM_FILE
           
static int CURLOPT_RANGE
           
static int CURLOPT_READFUNCTION
           
static int CURLOPT_REFERER
           
static int CURLOPT_RESUME_FROM
           
static int CURLOPT_RETURNTRANSFER
           
static int CURLOPT_SSL_CIPHER_LIST
           
static int CURLOPT_SSL_VERIFYHOST
           
static int CURLOPT_SSL_VERIFYPEER
           
static int CURLOPT_SSLCERT
           
static int CURLOPT_SSLCERTPASSWD
           
static int CURLOPT_SSLCERTTYPE
           
static int CURLOPT_SSLENGINE
           
static int CURLOPT_SSLENGINE_DEFAULT
           
static int CURLOPT_SSLKEY
           
static int CURLOPT_SSLKEYPASSWD
           
static int CURLOPT_SSLKEYTYPE
           
static int CURLOPT_SSLVERSION
           
static int CURLOPT_STDERR
           
static int CURLOPT_TCP_NODELAY
           
static int CURLOPT_TIMECONDITION
           
static int CURLOPT_TIMEOUT
           
static int CURLOPT_TIMEOUT_MS
           
static int CURLOPT_TIMEVALUE
           
static int CURLOPT_TRANSFERTEXT
           
static int CURLOPT_UNRESTRICTED_AUTH
           
static int CURLOPT_UPLOAD
           
static int CURLOPT_URL
           
static int CURLOPT_USERAGENT
           
static int CURLOPT_USERPWD
           
static int CURLOPT_VERBOSE
           
static int CURLOPT_WRITEFUNCTION
           
static int CURLOPT_WRITEHEADER
           
static int CURLPROXY_HTTP
           
static int CURLPROXY_SOCKS5
           
static int CURLVERSION_NOW
           
 
Fields inherited from class com.caucho.quercus.module.AbstractQuercusModule
PHP_INI_ALL, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_USER
 
Constructor Summary
CurlModule()
           
 
Method Summary
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 LongValue curl_multi_add_handle(Env env, Value curls, Value curl)
          XXX: not documented by PHP
static LongValue curl_multi_close(Env env, Value curls)
          XXX: not documented by PHP
static LongValue curl_multi_exec(Env env, Value curls, Value stillRunning)
          XXX: not documented by PHP
static StringValue curl_multi_getcontent(Env env, Value curl)
          XXX: not documented by PHP
static ArrayValue curl_multi_info_read(Env env, Value curls)
          XXX: not documented by PHP
static Value curl_multi_init(Env env)
          XXX: not documented by PHP
static LongValue curl_multi_remove_handle(Env env, Value curls, Value curl)
          XXX: not documented by PHP
static LongValue curl_multi_select(Env env, Value curls, Value timeout)
          XXX: not documented by PHP
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.
 
Methods inherited from class com.caucho.quercus.module.AbstractQuercusModule
addConstant, addConstant, addConstant, getConstMap, getIniDefinitions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CURLAUTH_ANY

public static final int CURLAUTH_ANY
See Also:
Constant Field Values

CURLAUTH_ANYSAFE

public static final int CURLAUTH_ANYSAFE
See Also:
Constant Field Values

CURLAUTH_BASIC

public static final int CURLAUTH_BASIC
See Also:
Constant Field Values

CURLAUTH_DIGEST

public static final int CURLAUTH_DIGEST
See Also:
Constant Field Values

CURLAUTH_GSSNEGOTIATE

public static final int CURLAUTH_GSSNEGOTIATE
See Also:
Constant Field Values

CURLAUTH_NTLM

public static final int CURLAUTH_NTLM
See Also:
Constant Field Values

CURLCLOSEPOLICY_CALLBACK

public static final int CURLCLOSEPOLICY_CALLBACK
See Also:
Constant Field Values

CURLCLOSEPOLICY_LEAST_RECENTLY_USED

public static final int CURLCLOSEPOLICY_LEAST_RECENTLY_USED
See Also:
Constant Field Values

CURLCLOSEPOLICY_LEAST_TRAFFIC

public static final int CURLCLOSEPOLICY_LEAST_TRAFFIC
See Also:
Constant Field Values

CURLCLOSEPOLICY_OLDEST

public static final int CURLCLOSEPOLICY_OLDEST
See Also:
Constant Field Values

CURLCLOSEPOLICY_SLOWEST

public static final int CURLCLOSEPOLICY_SLOWEST
See Also:
Constant Field Values

CURLE_ABORTED_BY_CALLBACK

public static final int CURLE_ABORTED_BY_CALLBACK
See Also:
Constant Field Values

CURLE_BAD_CALLING_ORDER

public static final int CURLE_BAD_CALLING_ORDER
See Also:
Constant Field Values

CURLE_BAD_CONTENT_ENCODING

public static final int CURLE_BAD_CONTENT_ENCODING
See Also:
Constant Field Values

CURLE_BAD_FUNCTION_ARGUMENT

public static final int CURLE_BAD_FUNCTION_ARGUMENT
See Also:
Constant Field Values

CURLE_BAD_PASSWORD_ENTERED

public static final int CURLE_BAD_PASSWORD_ENTERED
See Also:
Constant Field Values

CURLE_COULDNT_CONNECT

public static final int CURLE_COULDNT_CONNECT
See Also:
Constant Field Values

CURLE_COULDNT_RESOLVE_HOST

public static final int CURLE_COULDNT_RESOLVE_HOST
See Also:
Constant Field Values

CURLE_COULDNT_RESOLVE_PROXY

public static final int CURLE_COULDNT_RESOLVE_PROXY
See Also:
Constant Field Values

CURLE_FAILED_INIT

public static final int CURLE_FAILED_INIT
See Also:
Constant Field Values

CURLE_FILE_COULDNT_READ_FILE

public static final int CURLE_FILE_COULDNT_READ_FILE
See Also:
Constant Field Values

CURLE_FILESIZE_EXCEEDED

public static final int CURLE_FILESIZE_EXCEEDED
See Also:
Constant Field Values

CURLE_FTP_ACCESS_DENIED

public static final int CURLE_FTP_ACCESS_DENIED
See Also:
Constant Field Values

CURLE_FTP_BAD_DOWNLOAD_RESUME

public static final int CURLE_FTP_BAD_DOWNLOAD_RESUME
See Also:
Constant Field Values

CURLE_FTP_CANT_GET_HOST

public static final int CURLE_FTP_CANT_GET_HOST
See Also:
Constant Field Values

CURLE_FTP_CANT_RECONNECT

public static final int CURLE_FTP_CANT_RECONNECT
See Also:
Constant Field Values

CURLE_FTP_COULDNT_GET_SIZE

public static final int CURLE_FTP_COULDNT_GET_SIZE
See Also:
Constant Field Values

CURLE_FTP_COULDNT_RETR_FILE

public static final int CURLE_FTP_COULDNT_RETR_FILE
See Also:
Constant Field Values

CURLE_FTP_COULDNT_SET_ASCII

public static final int CURLE_FTP_COULDNT_SET_ASCII
See Also:
Constant Field Values

CURLE_FTP_COULDNT_SET_BINARY

public static final int CURLE_FTP_COULDNT_SET_BINARY
See Also:
Constant Field Values

CURLE_FTP_COULDNT_STOR_FILE

public static final int CURLE_FTP_COULDNT_STOR_FILE
See Also:
Constant Field Values

CURLE_FTP_COULDNT_USE_REST

public static final int CURLE_FTP_COULDNT_USE_REST
See Also:
Constant Field Values

CURLE_FTP_PORT_FAILED

public static final int CURLE_FTP_PORT_FAILED
See Also:
Constant Field Values

CURLE_FTP_QUOTE_ERROR

public static final int CURLE_FTP_QUOTE_ERROR
See Also:
Constant Field Values

CURLE_FTP_SSL_FAILED

public static final int CURLE_FTP_SSL_FAILED
See Also:
Constant Field Values

CURLE_FTP_USER_PASSWORD_INCORRECT

public static final int CURLE_FTP_USER_PASSWORD_INCORRECT
See Also:
Constant Field Values

CURLE_FTP_WEIRD_227_FORMAT

public static final int CURLE_FTP_WEIRD_227_FORMAT
See Also:
Constant Field Values

CURLE_FTP_WEIRD_PASS_REPLY

public static final int CURLE_FTP_WEIRD_PASS_REPLY
See Also:
Constant Field Values

CURLE_FTP_WEIRD_PASV_REPLY

public static final int CURLE_FTP_WEIRD_PASV_REPLY
See Also:
Constant Field Values

CURLE_FTP_WEIRD_SERVER_REPLY

public static final int CURLE_FTP_WEIRD_SERVER_REPLY
See Also:
Constant Field Values

CURLE_FTP_WEIRD_USER_REPLY

public static final int CURLE_FTP_WEIRD_USER_REPLY
See Also:
Constant Field Values

CURLE_FTP_WRITE_ERROR

public static final int CURLE_FTP_WRITE_ERROR
See Also:
Constant Field Values

CURLE_FUNCTION_NOT_FOUND

public static final int CURLE_FUNCTION_NOT_FOUND
See Also:
Constant Field Values

CURLE_GOT_NOTHING

public static final int CURLE_GOT_NOTHING
See Also:
Constant Field Values

CURLE_HTTP_NOT_FOUND

public static final int CURLE_HTTP_NOT_FOUND
See Also:
Constant Field Values

CURLE_HTTP_PORT_FAILED

public static final int CURLE_HTTP_PORT_FAILED
See Also:
Constant Field Values

CURLE_HTTP_POST_ERROR

public static final int CURLE_HTTP_POST_ERROR
See Also:
Constant Field Values

CURLE_HTTP_RANGE_ERROR

public static final int CURLE_HTTP_RANGE_ERROR
See Also:
Constant Field Values

CURLE_LDAP_CANNOT_BIND

public static final int CURLE_LDAP_CANNOT_BIND
See Also:
Constant Field Values

CURLE_LDAP_INVALID_URL

public static final int CURLE_LDAP_INVALID_URL
See Also:
Constant Field Values

CURLE_LDAP_SEARCH_FAILED

public static final int CURLE_LDAP_SEARCH_FAILED
See Also:
Constant Field Values

CURLE_LIBRARY_NOT_FOUND

public static final int CURLE_LIBRARY_NOT_FOUND
See Also:
Constant Field Values

CURLE_MALFORMAT_USER

public static final int CURLE_MALFORMAT_USER
See Also:
Constant Field Values

CURLE_OBSOLETE

public static final int CURLE_OBSOLETE
See Also:
Constant Field Values

CURLE_OK

public static final int CURLE_OK
See Also:
Constant Field Values

CURLE_OPERATION_TIMEOUTED

public static final int CURLE_OPERATION_TIMEOUTED
See Also:
Constant Field Values

CURLE_OUT_OF_MEMORY

public static final int CURLE_OUT_OF_MEMORY
See Also:
Constant Field Values

CURLE_PARTIAL_FILE

public static final int CURLE_PARTIAL_FILE
See Also:
Constant Field Values

CURLE_READ_ERROR

public static final int CURLE_READ_ERROR
See Also:
Constant Field Values

CURLE_RECV_ERROR

public static final int CURLE_RECV_ERROR
See Also:
Constant Field Values

CURLE_SEND_ERROR

public static final int CURLE_SEND_ERROR
See Also:
Constant Field Values

CURLE_SHARE_IN_USE

public static final int CURLE_SHARE_IN_USE
See Also:
Constant Field Values

CURLE_SSL_CACERT

public static final int CURLE_SSL_CACERT
See Also:
Constant Field Values

CURLE_SSL_CERTPROBLEM

public static final int CURLE_SSL_CERTPROBLEM
See Also:
Constant Field Values

CURLE_SSL_CIPHER

public static final int CURLE_SSL_CIPHER
See Also:
Constant Field Values

CURLE_SSL_CONNECT_ERROR

public static final int CURLE_SSL_CONNECT_ERROR
See Also:
Constant Field Values

CURLE_SSL_ENGINE_NOTFOUND

public static final int CURLE_SSL_ENGINE_NOTFOUND
See Also:
Constant Field Values

CURLE_SSL_ENGINE_SETFAILED

public static final int CURLE_SSL_ENGINE_SETFAILED
See Also:
Constant Field Values

CURLE_SSL_PEER_CERTIFICATE

public static final int CURLE_SSL_PEER_CERTIFICATE
See Also:
Constant Field Values

CURLE_TELNET_OPTION_SYNTAX

public static final int CURLE_TELNET_OPTION_SYNTAX
See Also:
Constant Field Values

CURLE_TOO_MANY_REDIRECTS

public static final int CURLE_TOO_MANY_REDIRECTS
See Also:
Constant Field Values

CURLE_UNKNOWN_TELNET_OPTION

public static final int CURLE_UNKNOWN_TELNET_OPTION
See Also:
Constant Field Values

CURLE_UNSUPPORTED_PROTOCOL

public static final int CURLE_UNSUPPORTED_PROTOCOL
See Also:
Constant Field Values

CURLE_URL_MALFORMAT

public static final int CURLE_URL_MALFORMAT
See Also:
Constant Field Values

CURLE_URL_MALFORMAT_USER

public static final int CURLE_URL_MALFORMAT_USER
See Also:
Constant Field Values

CURLE_WRITE_ERROR

public static final int CURLE_WRITE_ERROR
See Also:
Constant Field Values

CURLFTPAUTH_DEFAULT

public static final int CURLFTPAUTH_DEFAULT
See Also:
Constant Field Values

CURLFTPAUTH_SSL

public static final int CURLFTPAUTH_SSL
See Also:
Constant Field Values

CURLFTPAUTH_TLS

public static final int CURLFTPAUTH_TLS
See Also:
Constant Field Values

CURLFTPSSL_ALL

public static final int CURLFTPSSL_ALL
See Also:
Constant Field Values

CURLFTPSSL_CONTROL

public static final int CURLFTPSSL_CONTROL
See Also:
Constant Field Values

CURLFTPSSL_NONE

public static final int CURLFTPSSL_NONE
See Also:
Constant Field Values

CURLFTPSSL_TRY

public static final int CURLFTPSSL_TRY
See Also:
Constant Field Values

CURL_HTTP_VERSION_1_0

public static final int CURL_HTTP_VERSION_1_0
See Also:
Constant Field Values

CURL_HTTP_VERSION_1_1

public static final int CURL_HTTP_VERSION_1_1
See Also:
Constant Field Values

CURL_HTTP_VERSION_NONE

public static final int CURL_HTTP_VERSION_NONE
See Also:
Constant Field Values

CURLINFO_CONNECT_TIME

public static final int CURLINFO_CONNECT_TIME
See Also:
Constant Field Values

CURLINFO_CONTENT_LENGTH_DOWNLOAD

public static final int CURLINFO_CONTENT_LENGTH_DOWNLOAD
See Also:
Constant Field Values

CURLINFO_CONTENT_LENGTH_UPLOAD

public static final int CURLINFO_CONTENT_LENGTH_UPLOAD
See Also:
Constant Field Values

CURLINFO_CONTENT_TYPE

public static final int CURLINFO_CONTENT_TYPE
See Also:
Constant Field Values

CURLINFO_EFFECTIVE_URL

public static final int CURLINFO_EFFECTIVE_URL
See Also:
Constant Field Values

CURLINFO_FILETIME

public static final int CURLINFO_FILETIME
See Also:
Constant Field Values

CURLINFO_HEADER_OUT

public static final int CURLINFO_HEADER_OUT
See Also:
Constant Field Values

CURLINFO_HEADER_SIZE

public static final int CURLINFO_HEADER_SIZE
See Also:
Constant Field Values

CURLINFO_HTTP_CODE

public static final int CURLINFO_HTTP_CODE
See Also:
Constant Field Values

CURLINFO_NAMELOOKUP_TIME

public static final int CURLINFO_NAMELOOKUP_TIME
See Also:
Constant Field Values

CURLINFO_PRETRANSFER_TIME

public static final int CURLINFO_PRETRANSFER_TIME
See Also:
Constant Field Values

CURLINFO_PRIVATE

public static final int CURLINFO_PRIVATE
See Also:
Constant Field Values

CURLINFO_REDIRECT_COUNT

public static final int CURLINFO_REDIRECT_COUNT
See Also:
Constant Field Values

CURLINFO_REDIRECT_TIME

public static final int CURLINFO_REDIRECT_TIME
See Also:
Constant Field Values

CURLINFO_REQUEST_SIZE

public static final int CURLINFO_REQUEST_SIZE
See Also:
Constant Field Values

CURLINFO_SIZE_DOWNLOAD

public static final int CURLINFO_SIZE_DOWNLOAD
See Also:
Constant Field Values

CURLINFO_SIZE_UPLOAD

public static final int CURLINFO_SIZE_UPLOAD
See Also:
Constant Field Values

CURLINFO_SPEED_DOWNLOAD

public static final int CURLINFO_SPEED_DOWNLOAD
See Also:
Constant Field Values

CURLINFO_SPEED_UPLOAD

public static final int CURLINFO_SPEED_UPLOAD
See Also:
Constant Field Values

CURLINFO_SSL_VERIFYRESULT

public static final int CURLINFO_SSL_VERIFYRESULT
See Also:
Constant Field Values

CURLINFO_STARTTRANSFER_TIME

public static final int CURLINFO_STARTTRANSFER_TIME
See Also:
Constant Field Values

CURLINFO_TOTAL_TIME

public static final int CURLINFO_TOTAL_TIME
See Also:
Constant Field Values

CURLM_BAD_EASY_HANDLE

public static final int CURLM_BAD_EASY_HANDLE
See Also:
Constant Field Values

CURLM_BAD_HANDLE

public static final int CURLM_BAD_HANDLE
See Also:
Constant Field Values

CURLM_CALL_MULTI_PERFORM

public static final int CURLM_CALL_MULTI_PERFORM
See Also:
Constant Field Values

CURLM_INTERNAL_ERROR

public static final int CURLM_INTERNAL_ERROR
See Also:
Constant Field Values

CURLM_OK

public static final int CURLM_OK
See Also:
Constant Field Values

CURLM_OUT_OF_MEMORY

public static final int CURLM_OUT_OF_MEMORY
See Also:
Constant Field Values

CURLMSG_DONE

public static final int CURLMSG_DONE
See Also:
Constant Field Values

CURL_NETRC_IGNORED

public static final int CURL_NETRC_IGNORED
See Also:
Constant Field Values

CURL_NETRC_OPTIONAL

public static final int CURL_NETRC_OPTIONAL
See Also:
Constant Field Values

CURL_NETRC_REQUIRED

public static final int CURL_NETRC_REQUIRED
See Also:
Constant Field Values

CURLOPT_AUTOREFERER

public static final int CURLOPT_AUTOREFERER
See Also:
Constant Field Values

CURLOPT_BINARYTRANSFER

public static final int CURLOPT_BINARYTRANSFER
See Also:
Constant Field Values

CURLOPT_BUFFERSIZE

public static final int CURLOPT_BUFFERSIZE
See Also:
Constant Field Values

CURLOPT_CAINFO

public static final int CURLOPT_CAINFO
See Also:
Constant Field Values

CURLOPT_CAPATH

public static final int CURLOPT_CAPATH
See Also:
Constant Field Values

CURLOPT_CLOSEPOLICY

public static final int CURLOPT_CLOSEPOLICY
See Also:
Constant Field Values

CURLOPT_CONNECTTIMEOUT

public static final int CURLOPT_CONNECTTIMEOUT
See Also:
Constant Field Values

CURLOPT_CONNECTTIMEOUT_MS

public static final int CURLOPT_CONNECTTIMEOUT_MS
See Also:
Constant Field Values

CURLOPT_COOKIE

public static final int CURLOPT_COOKIE
See Also:
Constant Field Values

CURLOPT_COOKIEFILE

public static final int CURLOPT_COOKIEFILE
See Also:
Constant Field Values

CURLOPT_COOKIEJAR

public static final int CURLOPT_COOKIEJAR
See Also:
Constant Field Values

CURLOPT_COOKIESESSION

public static final int CURLOPT_COOKIESESSION
See Also:
Constant Field Values

CURLOPT_CRLF

public static final int CURLOPT_CRLF
See Also:
Constant Field Values

CURLOPT_CUSTOMREQUEST

public static final int CURLOPT_CUSTOMREQUEST
See Also:
Constant Field Values

CURLOPT_DNS_CACHE_TIMEOUT

public static final int CURLOPT_DNS_CACHE_TIMEOUT
See Also:
Constant Field Values

CURLOPT_DNS_USE_GLOBAL_CACHE

public static final int CURLOPT_DNS_USE_GLOBAL_CACHE
See Also:
Constant Field Values

CURLOPT_EGDSOCKET

public static final int CURLOPT_EGDSOCKET
See Also:
Constant Field Values

CURLOPT_ENCODING

public static final int CURLOPT_ENCODING
See Also:
Constant Field Values

CURLOPT_FAILONERROR

public static final int CURLOPT_FAILONERROR
See Also:
Constant Field Values

CURLOPT_FILE

public static final int CURLOPT_FILE
See Also:
Constant Field Values

CURLOPT_FILETIME

public static final int CURLOPT_FILETIME
See Also:
Constant Field Values

CURLOPT_FOLLOWLOCATION

public static final int CURLOPT_FOLLOWLOCATION
See Also:
Constant Field Values

CURLOPT_FORBID_REUSE

public static final int CURLOPT_FORBID_REUSE
See Also:
Constant Field Values

CURLOPT_FRESH_CONNECT

public static final int CURLOPT_FRESH_CONNECT
See Also:
Constant Field Values

CURLOPT_FTPAPPEND

public static final int CURLOPT_FTPAPPEND
See Also:
Constant Field Values

CURLOPT_FTPASCII

public static final int CURLOPT_FTPASCII
See Also:
Constant Field Values

CURLOPT_FTP_CREATE_MISSING_DIRS

public static final int CURLOPT_FTP_CREATE_MISSING_DIRS
See Also:
Constant Field Values

CURLOPT_FTPLISTONLY

public static final int CURLOPT_FTPLISTONLY
See Also:
Constant Field Values

CURLOPT_FTPPORT

public static final int CURLOPT_FTPPORT
See Also:
Constant Field Values

CURLOPT_FTP_SSL

public static final int CURLOPT_FTP_SSL
See Also:
Constant Field Values

CURLOPT_FTPSSLAUTH

public static final int CURLOPT_FTPSSLAUTH
See Also:
Constant Field Values

CURLOPT_FTP_USE_EPRT

public static final int CURLOPT_FTP_USE_EPRT
See Also:
Constant Field Values

CURLOPT_FTP_USE_EPSV

public static final int CURLOPT_FTP_USE_EPSV
See Also:
Constant Field Values

CURLOPT_HEADER

public static final int CURLOPT_HEADER
See Also:
Constant Field Values

CURLOPT_HEADERFUNCTION

public static final int CURLOPT_HEADERFUNCTION
See Also:
Constant Field Values

CURLOPT_HTTP200ALIASES

public static final int CURLOPT_HTTP200ALIASES
See Also:
Constant Field Values

CURLOPT_HTTPAUTH

public static final int CURLOPT_HTTPAUTH
See Also:
Constant Field Values

CURLOPT_HTTPGET

public static final int CURLOPT_HTTPGET
See Also:
Constant Field Values

CURLOPT_HTTPHEADER

public static final int CURLOPT_HTTPHEADER
See Also:
Constant Field Values

CURLOPT_HTTPPROXYTUNNEL

public static final int CURLOPT_HTTPPROXYTUNNEL
See Also:
Constant Field Values

CURLOPT_HTTP_VERSION

public static final int CURLOPT_HTTP_VERSION
See Also:
Constant Field Values

CURLOPT_INFILE

public static final int CURLOPT_INFILE
See Also:
Constant Field Values

CURLOPT_INFILESIZE

public static final int CURLOPT_INFILESIZE
See Also:
Constant Field Values

CURLOPT_INTERFACE

public static final int CURLOPT_INTERFACE
See Also:
Constant Field Values

CURLOPT_KRB4LEVEL

public static final int CURLOPT_KRB4LEVEL
See Also:
Constant Field Values

CURLOPT_LOW_SPEED_LIMIT

public static final int CURLOPT_LOW_SPEED_LIMIT
See Also:
Constant Field Values

CURLOPT_LOW_SPEED_TIME

public static final int CURLOPT_LOW_SPEED_TIME
See Also:
Constant Field Values

CURLOPT_MAXCONNECTS

public static final int CURLOPT_MAXCONNECTS
See Also:
Constant Field Values

CURLOPT_MAXREDIRS

public static final int CURLOPT_MAXREDIRS
See Also:
Constant Field Values

CURLOPT_MUTE

public static final int CURLOPT_MUTE
See Also:
Constant Field Values

CURLOPT_NETRC

public static final int CURLOPT_NETRC
See Also:
Constant Field Values

CURLOPT_NOBODY

public static final int CURLOPT_NOBODY
See Also:
Constant Field Values

CURLOPT_NOPROGRESS

public static final int CURLOPT_NOPROGRESS
See Also:
Constant Field Values

CURLOPT_NOSIGNAL

public static final int CURLOPT_NOSIGNAL
See Also:
Constant Field Values

CURLOPT_PASSWDFUNCTION

public static final int CURLOPT_PASSWDFUNCTION
See Also:
Constant Field Values

CURLOPT_PORT

public static final int CURLOPT_PORT
See Also:
Constant Field Values

CURLOPT_POST

public static final int CURLOPT_POST
See Also:
Constant Field Values

CURLOPT_POSTFIELDS

public static final int CURLOPT_POSTFIELDS
See Also:
Constant Field Values

CURLOPT_POSTQUOTE

public static final int CURLOPT_POSTQUOTE
See Also:
Constant Field Values

CURLOPT_PRIVATE

public static final int CURLOPT_PRIVATE
See Also:
Constant Field Values

CURLOPT_PROGRESSFUNCTION

public static final int CURLOPT_PROGRESSFUNCTION
See Also:
Constant Field Values

CURLOPT_PROXY

public static final int CURLOPT_PROXY
See Also:
Constant Field Values

CURLOPT_PROXYAUTH

public static final int CURLOPT_PROXYAUTH
See Also:
Constant Field Values

CURLOPT_PROXYPORT

public static final int CURLOPT_PROXYPORT
See Also:
Constant Field Values

CURLOPT_PROXYTYPE

public static final int CURLOPT_PROXYTYPE
See Also:
Constant Field Values

CURLOPT_PROXYUSERPWD

public static final int CURLOPT_PROXYUSERPWD
See Also:
Constant Field Values

CURLOPT_PUT

public static final int CURLOPT_PUT
See Also:
Constant Field Values

CURLOPT_QUOTE

public static final int CURLOPT_QUOTE
See Also:
Constant Field Values

CURLOPT_RANDOM_FILE

public static final int CURLOPT_RANDOM_FILE
See Also:
Constant Field Values

CURLOPT_RANGE

public static final int CURLOPT_RANGE
See Also:
Constant Field Values

CURLOPT_READFUNCTION

public static final int CURLOPT_READFUNCTION
See Also:
Constant Field Values

CURLOPT_REFERER

public static final int CURLOPT_REFERER
See Also:
Constant Field Values

CURLOPT_RESUME_FROM

public static final int CURLOPT_RESUME_FROM
See Also:
Constant Field Values

CURLOPT_RETURNTRANSFER

public static final int CURLOPT_RETURNTRANSFER
See Also:
Constant Field Values

CURLOPT_SSLCERT

public static final int CURLOPT_SSLCERT
See Also:
Constant Field Values

CURLOPT_SSLCERTPASSWD

public static final int CURLOPT_SSLCERTPASSWD
See Also:
Constant Field Values

CURLOPT_SSLCERTTYPE

public static final int CURLOPT_SSLCERTTYPE
See Also:
Constant Field Values

CURLOPT_SSL_CIPHER_LIST

public static final int CURLOPT_SSL_CIPHER_LIST
See Also:
Constant Field Values

CURLOPT_SSLENGINE

public static final int CURLOPT_SSLENGINE
See Also:
Constant Field Values

CURLOPT_SSLENGINE_DEFAULT

public static final int CURLOPT_SSLENGINE_DEFAULT
See Also:
Constant Field Values

CURLOPT_SSLKEY

public static final int CURLOPT_SSLKEY
See Also:
Constant Field Values

CURLOPT_SSLKEYPASSWD

public static final int CURLOPT_SSLKEYPASSWD
See Also:
Constant Field Values

CURLOPT_SSLKEYTYPE

public static final int CURLOPT_SSLKEYTYPE
See Also:
Constant Field Values

CURLOPT_SSL_VERIFYHOST

public static final int CURLOPT_SSL_VERIFYHOST
See Also:
Constant Field Values

CURLOPT_SSL_VERIFYPEER

public static final int CURLOPT_SSL_VERIFYPEER
See Also:
Constant Field Values

CURLOPT_SSLVERSION

public static final int CURLOPT_SSLVERSION
See Also:
Constant Field Values

CURLOPT_STDERR

public static final int CURLOPT_STDERR
See Also:
Constant Field Values

CURLOPT_TCP_NODELAY

public static final int CURLOPT_TCP_NODELAY
See Also:
Constant Field Values

CURLOPT_TIMECONDITION

public static final int CURLOPT_TIMECONDITION
See Also:
Constant Field Values

CURLOPT_TIMEOUT

public static final int CURLOPT_TIMEOUT
See Also:
Constant Field Values

CURLOPT_TIMEOUT_MS

public static final int CURLOPT_TIMEOUT_MS
See Also:
Constant Field Values

CURLOPT_TIMEVALUE

public static final int CURLOPT_TIMEVALUE
See Also:
Constant Field Values

CURLOPT_TRANSFERTEXT

public static final int CURLOPT_TRANSFERTEXT
See Also:
Constant Field Values

CURLOPT_UNRESTRICTED_AUTH

public static final int CURLOPT_UNRESTRICTED_AUTH
See Also:
Constant Field Values

CURLOPT_UPLOAD

public static final int CURLOPT_UPLOAD
See Also:
Constant Field Values

CURLOPT_URL

public static final int CURLOPT_URL
See Also:
Constant Field Values

CURLOPT_USERAGENT

public static final int CURLOPT_USERAGENT
See Also:
Constant Field Values

CURLOPT_USERPWD

public static final int CURLOPT_USERPWD
See Also:
Constant Field Values

CURLOPT_VERBOSE

public static final int CURLOPT_VERBOSE
See Also:
Constant Field Values

CURLOPT_WRITEFUNCTION

public static final int CURLOPT_WRITEFUNCTION
See Also:
Constant Field Values

CURLOPT_WRITEHEADER

public static final int CURLOPT_WRITEHEADER
See Also:
Constant Field Values

CURLPROXY_HTTP

public static final int CURLPROXY_HTTP
See Also:
Constant Field Values

CURLPROXY_SOCKS5

public static final int CURLPROXY_SOCKS5
See Also:
Constant Field Values

CURL_TIMECOND_IFMODSINCE

public static final int CURL_TIMECOND_IFMODSINCE
See Also:
Constant Field Values

CURL_TIMECOND_IFUNMODSINCE

public static final int CURL_TIMECOND_IFUNMODSINCE
See Also:
Constant Field Values

CURL_TIMECOND_LASTMOD

public static final int CURL_TIMECOND_LASTMOD
See Also:
Constant Field Values

CURL_VERSION_IPV6

public static final int CURL_VERSION_IPV6
See Also:
Constant Field Values

CURL_VERSION_KERBEROS4

public static final int CURL_VERSION_KERBEROS4
See Also:
Constant Field Values

CURL_VERSION_LIBZ

public static final int CURL_VERSION_LIBZ
See Also:
Constant Field Values

CURLVERSION_NOW

public static final int CURLVERSION_NOW
See Also:
Constant Field Values

CURL_VERSION_SSL

public static final int CURL_VERSION_SSL
See Also:
Constant Field Values
Constructor Detail

CurlModule

public CurlModule()
Method Detail

getLoadedExtensions

public java.lang.String[] getLoadedExtensions()
Description copied from class: AbstractQuercusModule
Returns the extensions loaded by the module.

Specified by:
getLoadedExtensions in interface QuercusModule
Overrides:
getLoadedExtensions in class AbstractQuercusModule

curl_close

public static void curl_close(Env env,
                              CurlResource curl)
Closes this cURL object.

Parameters:
env -
curl -

curl_copy_handle

public static CurlResource curl_copy_handle(Env env,
                                            CurlResource curl)
Returns a copy of this resource.

Parameters:
env -
curl -

curl_errno

public static Value curl_errno(Env env,
                               CurlResource curl)
Returns the error code from the last operation.

Parameters:
env -
curl -

curl_error

public static Value curl_error(Env env,
                               CurlResource curl)
Returns the error string from the last operation.

Parameters:
env -
curl -

curl_exec

public static Value curl_exec(Env env,
                              CurlResource curl)
Parameters:
env -
curl -

curl_getinfo

public static Value curl_getinfo(Env env,
                                 CurlResource curl,
                                 Value option)
Returns information about the last request.

Parameters:
env -
curl -
option - type of information to return

curl_init

public static CurlResource curl_init(Env env,
                                     java.lang.String url)
Returns a cURL handle.

Parameters:
env -
url -

curl_multi_add_handle

public static LongValue curl_multi_add_handle(Env env,
                                              Value curls,
                                              Value curl)
XXX: not documented by PHP

Parameters:
env -
curls -
curl -

curl_multi_close

public static LongValue curl_multi_close(Env env,
                                         Value curls)
XXX: not documented by PHP

Parameters:
env -
curls -

curl_multi_exec

public static LongValue curl_multi_exec(Env env,
                                        Value curls,
                                        Value stillRunning)
XXX: not documented by PHP

Parameters:
env -
curls -
stillRunning -

curl_multi_getcontent

public static StringValue curl_multi_getcontent(Env env,
                                                Value curl)
XXX: not documented by PHP

Parameters:
env -
curl -

curl_multi_info_read

public static ArrayValue curl_multi_info_read(Env env,
                                              Value curls)
XXX: not documented by PHP

Parameters:
env -
curls -

curl_multi_init

public static Value curl_multi_init(Env env)
XXX: not documented by PHP

Parameters:
env -

curl_multi_remove_handle

public static LongValue curl_multi_remove_handle(Env env,
                                                 Value curls,
                                                 Value curl)
XXX: not documented by PHP

Parameters:
env -
curls -
curl -

curl_multi_select

public static LongValue curl_multi_select(Env env,
                                          Value curls,
                                          Value timeout)
XXX: not documented by PHP

Parameters:
env -
curls -
timeout -

curl_setopt_array

public static BooleanValue curl_setopt_array(Env env,
                                             CurlResource curl,
                                             ArrayValue options)
Sets an array of options.

Parameters:
env -
curl -
options -

curl_setopt

public static BooleanValue curl_setopt(Env env,
                                       CurlResource curl,
                                       int option,
                                       Value value)
Sets a cURL option.

Parameters:
env -
curl -
option -
value -
Returns:
true if successful

curl_version

public static ArrayValue curl_version(Env env,
                                      Value age)
Returns the version of this cURL implementation.

Parameters:
env -
version -