Lines Matching refs:cp
184 error = curl_easy_setopt(ch->cp, option, copystr); in php_curl_option_str()
188 error = curl_easy_setopt(ch->cp, option, str); in php_curl_option_str()
202 curl_easy_setopt(ch->cp, CURLOPT_PROTOCOLS, CURLPROTO_ALL & ~CURLPROTO_FILE); in php_curl_option_url()
240 curl_easy_setopt(ch->cp, CURLOPT_STDERR, stderr); in _php_curl_verify_handlers()
254 curl_easy_setopt(ch->cp, CURLOPT_INFILE, (void *) ch); in _php_curl_verify_handlers()
268 curl_easy_setopt(ch->cp, CURLOPT_WRITEHEADER, (void *) ch); in _php_curl_verify_handlers()
282 curl_easy_setopt(ch->cp, CURLOPT_FILE, (void *) ch); in _php_curl_verify_handlers()
1673 static int curl_debug(CURL *cp, curl_infotype type, char *buf, size_t buf_len, void *ctx) /* {{{ */ in curl_debug() argument
1878 curl_easy_setopt(ch->cp, CURLOPT_NOPROGRESS, 1); in _php_curl_set_default_options()
1879 curl_easy_setopt(ch->cp, CURLOPT_VERBOSE, 0); in _php_curl_set_default_options()
1880 curl_easy_setopt(ch->cp, CURLOPT_ERRORBUFFER, ch->err.str); in _php_curl_set_default_options()
1881 curl_easy_setopt(ch->cp, CURLOPT_WRITEFUNCTION, curl_write); in _php_curl_set_default_options()
1882 curl_easy_setopt(ch->cp, CURLOPT_FILE, (void *) ch); in _php_curl_set_default_options()
1883 curl_easy_setopt(ch->cp, CURLOPT_READFUNCTION, curl_read); in _php_curl_set_default_options()
1884 curl_easy_setopt(ch->cp, CURLOPT_INFILE, (void *) ch); in _php_curl_set_default_options()
1885 curl_easy_setopt(ch->cp, CURLOPT_HEADERFUNCTION, curl_write_header); in _php_curl_set_default_options()
1886 curl_easy_setopt(ch->cp, CURLOPT_WRITEHEADER, (void *) ch); in _php_curl_set_default_options()
1888 curl_easy_setopt(ch->cp, CURLOPT_DNS_USE_GLOBAL_CACHE, 1); in _php_curl_set_default_options()
1890 curl_easy_setopt(ch->cp, CURLOPT_DNS_CACHE_TIMEOUT, 120); in _php_curl_set_default_options()
1891 curl_easy_setopt(ch->cp, CURLOPT_MAXREDIRS, 20); /* prevent infinite redirects */ in _php_curl_set_default_options()
1898 curl_easy_setopt(ch->cp, CURLOPT_CAINFO, cainfo); in _php_curl_set_default_options()
1902 curl_easy_setopt(ch->cp, CURLOPT_NOSIGNAL, 1); in _php_curl_set_default_options()
1912 CURL *cp; in PHP_FUNCTION() local
1921 cp = curl_easy_init(); in PHP_FUNCTION()
1922 if (!cp) { in PHP_FUNCTION()
1930 ch->cp = cp; in PHP_FUNCTION()
1957 CURL *cp; in PHP_FUNCTION() local
1967 cp = curl_easy_duphandle(ch->cp); in PHP_FUNCTION()
1968 if (!cp) { in PHP_FUNCTION()
1976 dupch->cp = cp; in PHP_FUNCTION()
2002 curl_easy_setopt(ch->cp, CURLOPT_PASSWDDATA, (void *) dupch); in PHP_FUNCTION()
2018 curl_easy_setopt(dupch->cp, CURLOPT_ERRORBUFFER, dupch->err.str); in PHP_FUNCTION()
2019 curl_easy_setopt(dupch->cp, CURLOPT_FILE, (void *) dupch); in PHP_FUNCTION()
2020 curl_easy_setopt(dupch->cp, CURLOPT_INFILE, (void *) dupch); in PHP_FUNCTION()
2021 curl_easy_setopt(dupch->cp, CURLOPT_WRITEHEADER, (void *) dupch); in PHP_FUNCTION()
2030 curl_easy_setopt(dupch->cp, CURLOPT_PROGRESSDATA, (void *) dupch); in PHP_FUNCTION()
2042 curl_easy_setopt(dupch->cp, CURLOPT_FNMATCH_DATA, (void *) dupch); in PHP_FUNCTION()
2071 error = curl_easy_setopt(ch->cp, option, 2); in _php_curl_setopt()
2233 error = curl_easy_setopt(ch->cp, option, Z_LVAL_PP(zvalue)); in _php_curl_setopt()
2321 error = curl_easy_setopt(ch->cp, option, NULL); in _php_curl_setopt()
2443 error = curl_easy_setopt(ch->cp, option, fp); in _php_curl_setopt()
2525 error = curl_easy_setopt(ch->cp, option, slist); in _php_curl_setopt()
2544 error = curl_easy_setopt(ch->cp, option, Z_LVAL_PP(zvalue)); in _php_curl_setopt()
2689 error = curl_easy_setopt(ch->cp, CURLOPT_HTTPPOST, first); in _php_curl_setopt()
2695 error = curl_easy_setopt(ch->cp, CURLOPT_POSTFIELDSIZE, Z_STRLEN_PP(zvalue)); in _php_curl_setopt()
2696 error = curl_easy_setopt(ch->cp, CURLOPT_COPYPOSTFIELDS, Z_STRVAL_PP(zvalue)); in _php_curl_setopt()
2704 curl_easy_setopt(ch->cp, CURLOPT_POSTFIELDS, post); in _php_curl_setopt()
2705 error = curl_easy_setopt(ch->cp, CURLOPT_POSTFIELDSIZE, Z_STRLEN_PP(zvalue)); in _php_curl_setopt()
2711 curl_easy_setopt(ch->cp, CURLOPT_PROGRESSFUNCTION, curl_progress); in _php_curl_setopt()
2712 curl_easy_setopt(ch->cp, CURLOPT_PROGRESSDATA, ch); in _php_curl_setopt()
2757 error = curl_easy_setopt(ch->cp, option, (curl_off_t)Z_LVAL_PP(zvalue)); in _php_curl_setopt()
2764 error = curl_easy_setopt(ch->cp, CURLOPT_POSTREDIR, Z_LVAL_PP(zvalue) & CURL_REDIR_POST_ALL); in _php_curl_setopt()
2775 error = curl_easy_setopt(ch->cp, CURLOPT_PASSWDFUNCTION, curl_passwd); in _php_curl_setopt()
2776 error = curl_easy_setopt(ch->cp, CURLOPT_PASSWDDATA, (void *) ch); in _php_curl_setopt()
2814 curl_easy_setopt(ch->cp, CURLOPT_DEBUGFUNCTION, curl_debug); in _php_curl_setopt()
2815 curl_easy_setopt(ch->cp, CURLOPT_DEBUGDATA, (void *)ch); in _php_curl_setopt()
2816 curl_easy_setopt(ch->cp, CURLOPT_VERBOSE, 1); in _php_curl_setopt()
2818 curl_easy_setopt(ch->cp, CURLOPT_DEBUGFUNCTION, NULL); in _php_curl_setopt()
2819 curl_easy_setopt(ch->cp, CURLOPT_DEBUGDATA, NULL); in _php_curl_setopt()
2820 curl_easy_setopt(ch->cp, CURLOPT_VERBOSE, 0); in _php_curl_setopt()
2829 curl_easy_setopt(ch->cp, CURLOPT_SHARE, sh->share); in _php_curl_setopt()
2836 curl_easy_setopt(ch->cp, CURLOPT_FNMATCH_FUNCTION, curl_fnmatch); in _php_curl_setopt()
2837 curl_easy_setopt(ch->cp, CURLOPT_FNMATCH_DATA, ch); in _php_curl_setopt()
2955 error = curl_easy_perform(ch->cp); in PHP_FUNCTION()
3019 if (curl_easy_getinfo(ch->cp, CURLINFO_EFFECTIVE_URL, &s_code) == CURLE_OK) { in PHP_FUNCTION()
3022 if (curl_easy_getinfo(ch->cp, CURLINFO_CONTENT_TYPE, &s_code) == CURLE_OK) { in PHP_FUNCTION()
3032 if (curl_easy_getinfo(ch->cp, CURLINFO_HTTP_CODE, &l_code) == CURLE_OK) { in PHP_FUNCTION()
3035 if (curl_easy_getinfo(ch->cp, CURLINFO_HEADER_SIZE, &l_code) == CURLE_OK) { in PHP_FUNCTION()
3038 if (curl_easy_getinfo(ch->cp, CURLINFO_REQUEST_SIZE, &l_code) == CURLE_OK) { in PHP_FUNCTION()
3041 if (curl_easy_getinfo(ch->cp, CURLINFO_FILETIME, &l_code) == CURLE_OK) { in PHP_FUNCTION()
3044 if (curl_easy_getinfo(ch->cp, CURLINFO_SSL_VERIFYRESULT, &l_code) == CURLE_OK) { in PHP_FUNCTION()
3047 if (curl_easy_getinfo(ch->cp, CURLINFO_REDIRECT_COUNT, &l_code) == CURLE_OK) { in PHP_FUNCTION()
3050 if (curl_easy_getinfo(ch->cp, CURLINFO_TOTAL_TIME, &d_code) == CURLE_OK) { in PHP_FUNCTION()
3053 if (curl_easy_getinfo(ch->cp, CURLINFO_NAMELOOKUP_TIME, &d_code) == CURLE_OK) { in PHP_FUNCTION()
3056 if (curl_easy_getinfo(ch->cp, CURLINFO_CONNECT_TIME, &d_code) == CURLE_OK) { in PHP_FUNCTION()
3059 if (curl_easy_getinfo(ch->cp, CURLINFO_PRETRANSFER_TIME, &d_code) == CURLE_OK) { in PHP_FUNCTION()
3062 if (curl_easy_getinfo(ch->cp, CURLINFO_SIZE_UPLOAD, &d_code) == CURLE_OK) { in PHP_FUNCTION()
3065 if (curl_easy_getinfo(ch->cp, CURLINFO_SIZE_DOWNLOAD, &d_code) == CURLE_OK) { in PHP_FUNCTION()
3068 if (curl_easy_getinfo(ch->cp, CURLINFO_SPEED_DOWNLOAD, &d_code) == CURLE_OK) { in PHP_FUNCTION()
3071 if (curl_easy_getinfo(ch->cp, CURLINFO_SPEED_UPLOAD, &d_code) == CURLE_OK) { in PHP_FUNCTION()
3074 if (curl_easy_getinfo(ch->cp, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &d_code) == CURLE_OK) { in PHP_FUNCTION()
3077 if (curl_easy_getinfo(ch->cp, CURLINFO_CONTENT_LENGTH_UPLOAD, &d_code) == CURLE_OK) { in PHP_FUNCTION()
3080 if (curl_easy_getinfo(ch->cp, CURLINFO_STARTTRANSFER_TIME, &d_code) == CURLE_OK) { in PHP_FUNCTION()
3083 if (curl_easy_getinfo(ch->cp, CURLINFO_REDIRECT_TIME, &d_code) == CURLE_OK) { in PHP_FUNCTION()
3087 if (curl_easy_getinfo(ch->cp, CURLINFO_REDIRECT_URL, &s_code) == CURLE_OK) { in PHP_FUNCTION()
3092 if (curl_easy_getinfo(ch->cp, CURLINFO_PRIMARY_IP, &s_code) == CURLE_OK) { in PHP_FUNCTION()
3097 if (curl_easy_getinfo(ch->cp, CURLINFO_CERTINFO, &ci) == CURLE_OK) { in PHP_FUNCTION()
3105 if (curl_easy_getinfo(ch->cp, CURLINFO_PRIMARY_PORT, &l_code) == CURLE_OK) { in PHP_FUNCTION()
3108 if (curl_easy_getinfo(ch->cp, CURLINFO_LOCAL_IP, &s_code) == CURLE_OK) { in PHP_FUNCTION()
3111 if (curl_easy_getinfo(ch->cp, CURLINFO_LOCAL_PORT, &l_code) == CURLE_OK) { in PHP_FUNCTION()
3132 if (curl_easy_getinfo(ch->cp, CURLINFO_CERTINFO, &ci) == CURLE_OK) { in PHP_FUNCTION()
3147 if (curl_easy_getinfo(ch->cp, option, &s_code) == CURLE_OK && s_code) { in PHP_FUNCTION()
3158 if (curl_easy_getinfo(ch->cp, option, &code) == CURLE_OK) { in PHP_FUNCTION()
3169 if (curl_easy_getinfo(ch->cp, option, &code) == CURLE_OK) { in PHP_FUNCTION()
3181 if (curl_easy_getinfo(ch->cp, option, &slist) == CURLE_OK) { in PHP_FUNCTION()
3280 curl_easy_setopt(ch->cp, CURLOPT_HEADERFUNCTION, curl_write_nothing); in _php_curl_close_ex()
3281 curl_easy_setopt(ch->cp, CURLOPT_WRITEFUNCTION, curl_write_nothing); in _php_curl_close_ex()
3283 curl_easy_cleanup(ch->cp); in _php_curl_close_ex()
3458 curl_easy_reset(ch->cp); in PHP_FUNCTION()
3481 if ((res = curl_easy_escape(ch->cp, str, str_len))) { in PHP_FUNCTION()
3509 if ((out = curl_easy_unescape(ch->cp, str, str_len, &out_len))) { in PHP_FUNCTION()
3534 RETURN_LONG(curl_easy_pause(ch->cp, bitmask)); in PHP_FUNCTION()