Lines Matching refs:cp

113 	CURLcode error = curl_easy_setopt(ch->cp, option, str);  in php_curl_option_str()
123 curl_easy_setopt(ch->cp, CURLOPT_PROTOCOLS, CURLPROTO_ALL & ~CURLPROTO_FILE); in php_curl_option_url()
156 curl_easy_setopt(ch->cp, CURLOPT_STDERR, stderr); in _php_curl_verify_handlers()
170 curl_easy_setopt(ch->cp, CURLOPT_INFILE, (void *) ch); in _php_curl_verify_handlers()
184 curl_easy_setopt(ch->cp, CURLOPT_WRITEHEADER, (void *) ch); in _php_curl_verify_handlers()
198 curl_easy_setopt(ch->cp, CURLOPT_FILE, (void *) ch); in _php_curl_verify_handlers()
1238 CURL *cp; in curl_clone_obj() local
1248 cp = curl_easy_duphandle(ch->cp); in curl_clone_obj()
1249 if (!cp) { in curl_clone_obj()
1254 clone_ch->cp = cp; in curl_clone_obj()
1630 static int curl_debug(CURL *cp, curl_infotype type, char *buf, size_t buf_len, void *ctx) /* {{{ */ in curl_debug() argument
1821 curl_easy_setopt(ch->cp, CURLOPT_NOPROGRESS, 1); in _php_curl_set_default_options()
1822 curl_easy_setopt(ch->cp, CURLOPT_VERBOSE, 0); in _php_curl_set_default_options()
1823 curl_easy_setopt(ch->cp, CURLOPT_ERRORBUFFER, ch->err.str); in _php_curl_set_default_options()
1824 curl_easy_setopt(ch->cp, CURLOPT_WRITEFUNCTION, curl_write); in _php_curl_set_default_options()
1825 curl_easy_setopt(ch->cp, CURLOPT_FILE, (void *) ch); in _php_curl_set_default_options()
1826 curl_easy_setopt(ch->cp, CURLOPT_READFUNCTION, curl_read); in _php_curl_set_default_options()
1827 curl_easy_setopt(ch->cp, CURLOPT_INFILE, (void *) ch); in _php_curl_set_default_options()
1828 curl_easy_setopt(ch->cp, CURLOPT_HEADERFUNCTION, curl_write_header); in _php_curl_set_default_options()
1829 curl_easy_setopt(ch->cp, CURLOPT_WRITEHEADER, (void *) ch); in _php_curl_set_default_options()
1831 curl_easy_setopt(ch->cp, CURLOPT_DNS_USE_GLOBAL_CACHE, 1); in _php_curl_set_default_options()
1833 curl_easy_setopt(ch->cp, CURLOPT_DNS_CACHE_TIMEOUT, 120); in _php_curl_set_default_options()
1834 curl_easy_setopt(ch->cp, CURLOPT_MAXREDIRS, 20); /* prevent infinite redirects */ in _php_curl_set_default_options()
1841 curl_easy_setopt(ch->cp, CURLOPT_CAINFO, cainfo); in _php_curl_set_default_options()
1845 curl_easy_setopt(ch->cp, CURLOPT_NOSIGNAL, 1); in _php_curl_set_default_options()
1854 CURL *cp; in PHP_FUNCTION() local
1862 cp = curl_easy_init(); in PHP_FUNCTION()
1863 if (!cp) { in PHP_FUNCTION()
1870 ch->cp = cp; in PHP_FUNCTION()
1920 curl_easy_setopt(ch->cp, CURLOPT_ERRORBUFFER, ch->err.str); in _php_setup_easy_copy_handlers()
1921 curl_easy_setopt(ch->cp, CURLOPT_FILE, (void *) ch); in _php_setup_easy_copy_handlers()
1922 curl_easy_setopt(ch->cp, CURLOPT_INFILE, (void *) ch); in _php_setup_easy_copy_handlers()
1923 curl_easy_setopt(ch->cp, CURLOPT_WRITEHEADER, (void *) ch); in _php_setup_easy_copy_handlers()
1924 curl_easy_setopt(ch->cp, CURLOPT_DEBUGDATA, (void *) ch); in _php_setup_easy_copy_handlers()
1931 curl_easy_setopt(ch->cp, CURLOPT_PROGRESSDATA, (void *) ch); in _php_setup_easy_copy_handlers()
1939 curl_easy_setopt(ch->cp, CURLOPT_FNMATCH_DATA, (void *) ch); in _php_setup_easy_copy_handlers()
2019 mime = curl_mime_init(ch->cp); in build_mime_structure_from_hash()
2233 error = curl_easy_setopt(ch->cp, CURLOPT_MIMEPOST, mime); in build_mime_structure_from_hash()
2236 error = curl_easy_setopt(ch->cp, CURLOPT_HTTPPOST, first); in build_mime_structure_from_hash()
2248 CURL *cp; in PHP_FUNCTION() local
2259 cp = curl_easy_duphandle(ch->cp); in PHP_FUNCTION()
2260 if (!cp) { in PHP_FUNCTION()
2266 dupch->cp = cp; in PHP_FUNCTION()
2292 error = curl_easy_setopt(ch->cp, option, 2); in _php_curl_setopt()
2454 error = curl_easy_setopt(ch->cp, option, lval); in _php_curl_setopt()
2571 error = curl_easy_setopt(ch->cp, option, NULL); in _php_curl_setopt()
2691 error = curl_easy_setopt(ch->cp, option, fp); in _php_curl_setopt()
2781 error = curl_easy_setopt(ch->cp, option, slist); in _php_curl_setopt()
2792 error = curl_easy_setopt(ch->cp, option, lval); in _php_curl_setopt()
2809 curl_easy_setopt(ch->cp, CURLOPT_POSTFIELDS, ""); in _php_curl_setopt()
2810 error = curl_easy_setopt(ch->cp, CURLOPT_POSTFIELDSIZE, 0); in _php_curl_setopt()
2818 error = curl_easy_setopt(ch->cp, CURLOPT_POSTFIELDSIZE, ZSTR_LEN(str)); in _php_curl_setopt()
2819 error = curl_easy_setopt(ch->cp, CURLOPT_COPYPOSTFIELDS, ZSTR_VAL(str)); in _php_curl_setopt()
2825 curl_easy_setopt(ch->cp, CURLOPT_PROGRESSFUNCTION, curl_progress); in _php_curl_setopt()
2826 curl_easy_setopt(ch->cp, CURLOPT_PROGRESSDATA, ch); in _php_curl_setopt()
2869 error = curl_easy_setopt(ch->cp, option, (curl_off_t)lval); in _php_curl_setopt()
2874 error = curl_easy_setopt(ch->cp, CURLOPT_POSTREDIR, lval & CURL_REDIR_POST_ALL); in _php_curl_setopt()
2907 curl_easy_setopt(ch->cp, CURLOPT_DEBUGFUNCTION, curl_debug); in _php_curl_setopt()
2908 curl_easy_setopt(ch->cp, CURLOPT_DEBUGDATA, (void *)ch); in _php_curl_setopt()
2909 curl_easy_setopt(ch->cp, CURLOPT_VERBOSE, 1); in _php_curl_setopt()
2911 curl_easy_setopt(ch->cp, CURLOPT_DEBUGFUNCTION, NULL); in _php_curl_setopt()
2912 curl_easy_setopt(ch->cp, CURLOPT_DEBUGDATA, NULL); in _php_curl_setopt()
2913 curl_easy_setopt(ch->cp, CURLOPT_VERBOSE, 0); in _php_curl_setopt()
2921 curl_easy_setopt(ch->cp, CURLOPT_SHARE, sh->share); in _php_curl_setopt()
2933 curl_easy_setopt(ch->cp, CURLOPT_FNMATCH_FUNCTION, curl_fnmatch); in _php_curl_setopt()
2934 curl_easy_setopt(ch->cp, CURLOPT_FNMATCH_DATA, ch); in _php_curl_setopt()
2960 error = curl_easy_setopt(ch->cp, option, &stblob); in _php_curl_setopt()
3072 error = curl_easy_perform(ch->cp); in PHP_FUNCTION()
3141 if (curl_easy_getinfo(ch->cp, CURLINFO_EFFECTIVE_URL, &s_code) == CURLE_OK) { in PHP_FUNCTION()
3144 if (curl_easy_getinfo(ch->cp, CURLINFO_CONTENT_TYPE, &s_code) == CURLE_OK) { in PHP_FUNCTION()
3153 if (curl_easy_getinfo(ch->cp, CURLINFO_HTTP_CODE, &l_code) == CURLE_OK) { in PHP_FUNCTION()
3156 if (curl_easy_getinfo(ch->cp, CURLINFO_HEADER_SIZE, &l_code) == CURLE_OK) { in PHP_FUNCTION()
3159 if (curl_easy_getinfo(ch->cp, CURLINFO_REQUEST_SIZE, &l_code) == CURLE_OK) { in PHP_FUNCTION()
3162 if (curl_easy_getinfo(ch->cp, CURLINFO_FILETIME, &l_code) == CURLE_OK) { in PHP_FUNCTION()
3165 if (curl_easy_getinfo(ch->cp, CURLINFO_SSL_VERIFYRESULT, &l_code) == CURLE_OK) { in PHP_FUNCTION()
3168 if (curl_easy_getinfo(ch->cp, CURLINFO_REDIRECT_COUNT, &l_code) == CURLE_OK) { in PHP_FUNCTION()
3171 if (curl_easy_getinfo(ch->cp, CURLINFO_TOTAL_TIME, &d_code) == CURLE_OK) { in PHP_FUNCTION()
3174 if (curl_easy_getinfo(ch->cp, CURLINFO_NAMELOOKUP_TIME, &d_code) == CURLE_OK) { in PHP_FUNCTION()
3177 if (curl_easy_getinfo(ch->cp, CURLINFO_CONNECT_TIME, &d_code) == CURLE_OK) { in PHP_FUNCTION()
3180 if (curl_easy_getinfo(ch->cp, CURLINFO_PRETRANSFER_TIME, &d_code) == CURLE_OK) { in PHP_FUNCTION()
3183 if (curl_easy_getinfo(ch->cp, CURLINFO_SIZE_UPLOAD, &d_code) == CURLE_OK) { in PHP_FUNCTION()
3186 if (curl_easy_getinfo(ch->cp, CURLINFO_SIZE_DOWNLOAD, &d_code) == CURLE_OK) { in PHP_FUNCTION()
3189 if (curl_easy_getinfo(ch->cp, CURLINFO_SPEED_DOWNLOAD, &d_code) == CURLE_OK) { in PHP_FUNCTION()
3192 if (curl_easy_getinfo(ch->cp, CURLINFO_SPEED_UPLOAD, &d_code) == CURLE_OK) { in PHP_FUNCTION()
3195 if (curl_easy_getinfo(ch->cp, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &d_code) == CURLE_OK) { in PHP_FUNCTION()
3198 if (curl_easy_getinfo(ch->cp, CURLINFO_CONTENT_LENGTH_UPLOAD, &d_code) == CURLE_OK) { in PHP_FUNCTION()
3201 if (curl_easy_getinfo(ch->cp, CURLINFO_STARTTRANSFER_TIME, &d_code) == CURLE_OK) { in PHP_FUNCTION()
3204 if (curl_easy_getinfo(ch->cp, CURLINFO_REDIRECT_TIME, &d_code) == CURLE_OK) { in PHP_FUNCTION()
3207 if (curl_easy_getinfo(ch->cp, CURLINFO_REDIRECT_URL, &s_code) == CURLE_OK) { in PHP_FUNCTION()
3210 if (curl_easy_getinfo(ch->cp, CURLINFO_PRIMARY_IP, &s_code) == CURLE_OK) { in PHP_FUNCTION()
3213 if (curl_easy_getinfo(ch->cp, CURLINFO_CERTINFO, &ci) == CURLE_OK) { in PHP_FUNCTION()
3218 if (curl_easy_getinfo(ch->cp, CURLINFO_PRIMARY_PORT, &l_code) == CURLE_OK) { in PHP_FUNCTION()
3221 if (curl_easy_getinfo(ch->cp, CURLINFO_LOCAL_IP, &s_code) == CURLE_OK) { in PHP_FUNCTION()
3224 if (curl_easy_getinfo(ch->cp, CURLINFO_LOCAL_PORT, &l_code) == CURLE_OK) { in PHP_FUNCTION()
3228 if (curl_easy_getinfo(ch->cp, CURLINFO_HTTP_VERSION, &l_code) == CURLE_OK) { in PHP_FUNCTION()
3233 if (curl_easy_getinfo(ch->cp, CURLINFO_PROTOCOL, &l_code) == CURLE_OK) { in PHP_FUNCTION()
3236 if (curl_easy_getinfo(ch->cp, CURLINFO_PROXY_SSL_VERIFYRESULT, &l_code) == CURLE_OK) { in PHP_FUNCTION()
3239 if (curl_easy_getinfo(ch->cp, CURLINFO_SCHEME, &s_code) == CURLE_OK) { in PHP_FUNCTION()
3244 if (curl_easy_getinfo(ch->cp, CURLINFO_APPCONNECT_TIME_T, &co) == CURLE_OK) { in PHP_FUNCTION()
3247 if (curl_easy_getinfo(ch->cp, CURLINFO_CONNECT_TIME_T, &co) == CURLE_OK) { in PHP_FUNCTION()
3250 if (curl_easy_getinfo(ch->cp, CURLINFO_NAMELOOKUP_TIME_T, &co) == CURLE_OK) { in PHP_FUNCTION()
3253 if (curl_easy_getinfo(ch->cp, CURLINFO_PRETRANSFER_TIME_T, &co) == CURLE_OK) { in PHP_FUNCTION()
3256 if (curl_easy_getinfo(ch->cp, CURLINFO_REDIRECT_TIME_T, &co) == CURLE_OK) { in PHP_FUNCTION()
3259 if (curl_easy_getinfo(ch->cp, CURLINFO_STARTTRANSFER_TIME_T, &co) == CURLE_OK) { in PHP_FUNCTION()
3262 if (curl_easy_getinfo(ch->cp, CURLINFO_TOTAL_TIME_T, &co) == CURLE_OK) { in PHP_FUNCTION()
3282 if (curl_easy_getinfo(ch->cp, CURLINFO_CERTINFO, &ci) == CURLE_OK) { in PHP_FUNCTION()
3303 if (curl_easy_getinfo(ch->cp, option, &s_code) == CURLE_OK && s_code) { in PHP_FUNCTION()
3314 if (curl_easy_getinfo(ch->cp, option, &code) == CURLE_OK) { in PHP_FUNCTION()
3325 if (curl_easy_getinfo(ch->cp, option, &code) == CURLE_OK) { in PHP_FUNCTION()
3335 if (curl_easy_getinfo(ch->cp, option, &slist) == CURLE_OK) { in PHP_FUNCTION()
3352 if (curl_easy_getinfo(ch->cp, option, &c_off) == CURLE_OK) { in PHP_FUNCTION()
3433 if (!ch->cp) { in curl_free_obj()
3452 curl_easy_setopt(ch->cp, CURLOPT_HEADERFUNCTION, curl_write_nothing); in curl_free_obj()
3453 curl_easy_setopt(ch->cp, CURLOPT_WRITEFUNCTION, curl_write_nothing); in curl_free_obj()
3455 curl_easy_cleanup(ch->cp); in curl_free_obj()
3592 curl_easy_reset(ch->cp); in PHP_FUNCTION()
3617 if ((res = curl_easy_escape(ch->cp, ZSTR_VAL(str), ZSTR_LEN(str)))) { in PHP_FUNCTION()
3646 if ((out = curl_easy_unescape(ch->cp, ZSTR_VAL(str), ZSTR_LEN(str), &out_len))) { in PHP_FUNCTION()
3669 RETURN_LONG(curl_easy_pause(ch->cp, bitmask)); in PHP_FUNCTION()