Lines Matching refs:cp
111 CURLcode error = curl_easy_setopt(ch->cp, option, str); in php_curl_option_str()
121 curl_easy_setopt(ch->cp, CURLOPT_PROTOCOLS, CURLPROTO_ALL & ~CURLPROTO_FILE); in php_curl_option_url()
158 curl_easy_setopt(ch->cp, CURLOPT_STDERR, stderr); in _php_curl_verify_handlers()
172 curl_easy_setopt(ch->cp, CURLOPT_INFILE, (void *) ch); in _php_curl_verify_handlers()
186 curl_easy_setopt(ch->cp, CURLOPT_WRITEHEADER, (void *) ch); in _php_curl_verify_handlers()
200 curl_easy_setopt(ch->cp, CURLOPT_FILE, (void *) ch); in _php_curl_verify_handlers()
437 CURL *cp; in curl_clone_obj() local
447 cp = curl_easy_duphandle(ch->cp); in curl_clone_obj()
448 if (!cp) { in curl_clone_obj()
453 clone_ch->cp = cp; in curl_clone_obj()
1191 curl_easy_setopt(ch->cp, CURLOPT_NOPROGRESS, 1); in _php_curl_set_default_options()
1192 curl_easy_setopt(ch->cp, CURLOPT_VERBOSE, 0); in _php_curl_set_default_options()
1193 curl_easy_setopt(ch->cp, CURLOPT_ERRORBUFFER, ch->err.str); in _php_curl_set_default_options()
1194 curl_easy_setopt(ch->cp, CURLOPT_WRITEFUNCTION, curl_write); in _php_curl_set_default_options()
1195 curl_easy_setopt(ch->cp, CURLOPT_FILE, (void *) ch); in _php_curl_set_default_options()
1196 curl_easy_setopt(ch->cp, CURLOPT_READFUNCTION, curl_read); in _php_curl_set_default_options()
1197 curl_easy_setopt(ch->cp, CURLOPT_INFILE, (void *) ch); in _php_curl_set_default_options()
1198 curl_easy_setopt(ch->cp, CURLOPT_HEADERFUNCTION, curl_write_header); in _php_curl_set_default_options()
1199 curl_easy_setopt(ch->cp, CURLOPT_WRITEHEADER, (void *) ch); in _php_curl_set_default_options()
1200 curl_easy_setopt(ch->cp, CURLOPT_DNS_CACHE_TIMEOUT, 120); in _php_curl_set_default_options()
1201 curl_easy_setopt(ch->cp, CURLOPT_MAXREDIRS, 20); /* prevent infinite redirects */ in _php_curl_set_default_options()
1208 curl_easy_setopt(ch->cp, CURLOPT_CAINFO, cainfo); in _php_curl_set_default_options()
1212 curl_easy_setopt(ch->cp, CURLOPT_NOSIGNAL, 1); in _php_curl_set_default_options()
1221 CURL *cp; in PHP_FUNCTION() local
1229 cp = curl_easy_init(); in PHP_FUNCTION()
1230 if (!cp) { in PHP_FUNCTION()
1237 ch->cp = cp; in PHP_FUNCTION()
1258 curl_easy_setopt(ch->cp, option, (void *) ch); in php_curl_copy_fcc_with_option()
1295 curl_easy_setopt(ch->cp, CURLOPT_ERRORBUFFER, ch->err.str); in _php_setup_easy_copy_handlers()
1296 curl_easy_setopt(ch->cp, CURLOPT_FILE, (void *) ch); in _php_setup_easy_copy_handlers()
1297 curl_easy_setopt(ch->cp, CURLOPT_INFILE, (void *) ch); in _php_setup_easy_copy_handlers()
1298 curl_easy_setopt(ch->cp, CURLOPT_WRITEHEADER, (void *) ch); in _php_setup_easy_copy_handlers()
1299 curl_easy_setopt(ch->cp, CURLOPT_DEBUGDATA, (void *) ch); in _php_setup_easy_copy_handlers()
1404 mime = curl_mime_init(ch->cp); in build_mime_structure_from_hash()
1565 error = curl_easy_setopt(ch->cp, CURLOPT_MIMEPOST, mime); in build_mime_structure_from_hash()
1576 CURL *cp; in PHP_FUNCTION() local
1587 cp = curl_easy_duphandle(ch->cp); in PHP_FUNCTION()
1588 if (!cp) { in PHP_FUNCTION()
1594 dupch->cp = cp; in PHP_FUNCTION()
1653 curl_easy_setopt(curl_ptr->cp, constant_no_function##FUNCTION, (c_callback)); \
1654 curl_easy_setopt(curl_ptr->cp, constant_no_function##DATA, curl_ptr); \
1686 error = curl_easy_setopt(ch->cp, option, 2); in _php_curl_setopt()
1844 error = curl_easy_setopt(ch->cp, option, lval); in _php_curl_setopt()
1973 error = curl_easy_setopt(ch->cp, option, NULL); in _php_curl_setopt()
2093 error = curl_easy_setopt(ch->cp, option, fp); in _php_curl_setopt()
2175 error = curl_easy_setopt(ch->cp, option, slist); in _php_curl_setopt()
2187 error = curl_easy_setopt(ch->cp, option, lval); in _php_curl_setopt()
2195 curl_easy_setopt(ch->cp, CURLOPT_POSTFIELDS, ""); in _php_curl_setopt()
2196 error = curl_easy_setopt(ch->cp, CURLOPT_POSTFIELDSIZE, 0); in _php_curl_setopt()
2204 error = curl_easy_setopt(ch->cp, CURLOPT_POSTFIELDSIZE, ZSTR_LEN(str)); in _php_curl_setopt()
2205 error = curl_easy_setopt(ch->cp, CURLOPT_COPYPOSTFIELDS, ZSTR_VAL(str)); in _php_curl_setopt()
2224 error = curl_easy_setopt(ch->cp, option, (curl_off_t)lval); in _php_curl_setopt()
2229 error = curl_easy_setopt(ch->cp, CURLOPT_POSTREDIR, lval & CURL_REDIR_POST_ALL); in _php_curl_setopt()
2267 curl_easy_setopt(ch->cp, CURLOPT_DEBUGFUNCTION, curl_debug); in _php_curl_setopt()
2268 curl_easy_setopt(ch->cp, CURLOPT_DEBUGDATA, (void *)ch); in _php_curl_setopt()
2269 curl_easy_setopt(ch->cp, CURLOPT_VERBOSE, 1); in _php_curl_setopt()
2271 curl_easy_setopt(ch->cp, CURLOPT_DEBUGFUNCTION, NULL); in _php_curl_setopt()
2272 curl_easy_setopt(ch->cp, CURLOPT_DEBUGDATA, NULL); in _php_curl_setopt()
2273 curl_easy_setopt(ch->cp, CURLOPT_VERBOSE, 0); in _php_curl_setopt()
2281 curl_easy_setopt(ch->cp, CURLOPT_SHARE, sh->share); in _php_curl_setopt()
2312 error = curl_easy_setopt(ch->cp, option, &stblob); in _php_curl_setopt()
2424 error = curl_easy_perform(ch->cp); in PHP_FUNCTION()
2491 if (curl_easy_getinfo(ch->cp, CURLINFO_EFFECTIVE_URL, &s_code) == CURLE_OK) { in PHP_FUNCTION()
2494 if (curl_easy_getinfo(ch->cp, CURLINFO_CONTENT_TYPE, &s_code) == CURLE_OK) { in PHP_FUNCTION()
2503 if (curl_easy_getinfo(ch->cp, CURLINFO_HTTP_CODE, &l_code) == CURLE_OK) { in PHP_FUNCTION()
2506 if (curl_easy_getinfo(ch->cp, CURLINFO_HEADER_SIZE, &l_code) == CURLE_OK) { in PHP_FUNCTION()
2509 if (curl_easy_getinfo(ch->cp, CURLINFO_REQUEST_SIZE, &l_code) == CURLE_OK) { in PHP_FUNCTION()
2512 if (curl_easy_getinfo(ch->cp, CURLINFO_FILETIME, &l_code) == CURLE_OK) { in PHP_FUNCTION()
2515 if (curl_easy_getinfo(ch->cp, CURLINFO_SSL_VERIFYRESULT, &l_code) == CURLE_OK) { in PHP_FUNCTION()
2518 if (curl_easy_getinfo(ch->cp, CURLINFO_REDIRECT_COUNT, &l_code) == CURLE_OK) { in PHP_FUNCTION()
2521 if (curl_easy_getinfo(ch->cp, CURLINFO_TOTAL_TIME, &d_code) == CURLE_OK) { in PHP_FUNCTION()
2524 if (curl_easy_getinfo(ch->cp, CURLINFO_NAMELOOKUP_TIME, &d_code) == CURLE_OK) { in PHP_FUNCTION()
2527 if (curl_easy_getinfo(ch->cp, CURLINFO_CONNECT_TIME, &d_code) == CURLE_OK) { in PHP_FUNCTION()
2530 if (curl_easy_getinfo(ch->cp, CURLINFO_PRETRANSFER_TIME, &d_code) == CURLE_OK) { in PHP_FUNCTION()
2533 if (curl_easy_getinfo(ch->cp, CURLINFO_SIZE_UPLOAD, &d_code) == CURLE_OK) { in PHP_FUNCTION()
2536 if (curl_easy_getinfo(ch->cp, CURLINFO_SIZE_DOWNLOAD, &d_code) == CURLE_OK) { in PHP_FUNCTION()
2539 if (curl_easy_getinfo(ch->cp, CURLINFO_SPEED_DOWNLOAD, &d_code) == CURLE_OK) { in PHP_FUNCTION()
2542 if (curl_easy_getinfo(ch->cp, CURLINFO_SPEED_UPLOAD, &d_code) == CURLE_OK) { in PHP_FUNCTION()
2545 if (curl_easy_getinfo(ch->cp, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &d_code) == CURLE_OK) { in PHP_FUNCTION()
2548 if (curl_easy_getinfo(ch->cp, CURLINFO_CONTENT_LENGTH_UPLOAD, &d_code) == CURLE_OK) { in PHP_FUNCTION()
2551 if (curl_easy_getinfo(ch->cp, CURLINFO_STARTTRANSFER_TIME, &d_code) == CURLE_OK) { in PHP_FUNCTION()
2554 if (curl_easy_getinfo(ch->cp, CURLINFO_REDIRECT_TIME, &d_code) == CURLE_OK) { in PHP_FUNCTION()
2557 if (curl_easy_getinfo(ch->cp, CURLINFO_REDIRECT_URL, &s_code) == CURLE_OK) { in PHP_FUNCTION()
2560 if (curl_easy_getinfo(ch->cp, CURLINFO_PRIMARY_IP, &s_code) == CURLE_OK) { in PHP_FUNCTION()
2563 if (curl_easy_getinfo(ch->cp, CURLINFO_CERTINFO, &ci) == CURLE_OK) { in PHP_FUNCTION()
2568 if (curl_easy_getinfo(ch->cp, CURLINFO_PRIMARY_PORT, &l_code) == CURLE_OK) { in PHP_FUNCTION()
2571 if (curl_easy_getinfo(ch->cp, CURLINFO_LOCAL_IP, &s_code) == CURLE_OK) { in PHP_FUNCTION()
2574 if (curl_easy_getinfo(ch->cp, CURLINFO_LOCAL_PORT, &l_code) == CURLE_OK) { in PHP_FUNCTION()
2577 if (curl_easy_getinfo(ch->cp, CURLINFO_HTTP_VERSION, &l_code) == CURLE_OK) { in PHP_FUNCTION()
2580 if (curl_easy_getinfo(ch->cp, CURLINFO_PROTOCOL, &l_code) == CURLE_OK) { in PHP_FUNCTION()
2583 if (curl_easy_getinfo(ch->cp, CURLINFO_PROXY_SSL_VERIFYRESULT, &l_code) == CURLE_OK) { in PHP_FUNCTION()
2586 if (curl_easy_getinfo(ch->cp, CURLINFO_SCHEME, &s_code) == CURLE_OK) { in PHP_FUNCTION()
2589 if (curl_easy_getinfo(ch->cp, CURLINFO_APPCONNECT_TIME_T, &co) == CURLE_OK) { in PHP_FUNCTION()
2592 if (curl_easy_getinfo(ch->cp, CURLINFO_CONNECT_TIME_T, &co) == CURLE_OK) { in PHP_FUNCTION()
2595 if (curl_easy_getinfo(ch->cp, CURLINFO_NAMELOOKUP_TIME_T, &co) == CURLE_OK) { in PHP_FUNCTION()
2598 if (curl_easy_getinfo(ch->cp, CURLINFO_PRETRANSFER_TIME_T, &co) == CURLE_OK) { in PHP_FUNCTION()
2601 if (curl_easy_getinfo(ch->cp, CURLINFO_REDIRECT_TIME_T, &co) == CURLE_OK) { in PHP_FUNCTION()
2604 if (curl_easy_getinfo(ch->cp, CURLINFO_STARTTRANSFER_TIME_T, &co) == CURLE_OK) { in PHP_FUNCTION()
2608 if (curl_easy_getinfo(ch->cp, CURLINFO_POSTTRANSFER_TIME_T, &co) == CURLE_OK) { in PHP_FUNCTION()
2612 if (curl_easy_getinfo(ch->cp, CURLINFO_TOTAL_TIME_T, &co) == CURLE_OK) { in PHP_FUNCTION()
2619 if (curl_easy_getinfo(ch->cp, CURLINFO_EFFECTIVE_METHOD, &s_code) == CURLE_OK) { in PHP_FUNCTION()
2624 if (curl_easy_getinfo(ch->cp, CURLINFO_CAPATH, &s_code) == CURLE_OK) { in PHP_FUNCTION()
2627 if (curl_easy_getinfo(ch->cp, CURLINFO_CAINFO, &s_code) == CURLE_OK) { in PHP_FUNCTION()
2644 if (curl_easy_getinfo(ch->cp, CURLINFO_CERTINFO, &ci) == CURLE_OK) { in PHP_FUNCTION()
2665 if (curl_easy_getinfo(ch->cp, option, &s_code) == CURLE_OK && s_code) { in PHP_FUNCTION()
2676 if (curl_easy_getinfo(ch->cp, option, &code) == CURLE_OK) { in PHP_FUNCTION()
2687 if (curl_easy_getinfo(ch->cp, option, &code) == CURLE_OK) { in PHP_FUNCTION()
2697 if (curl_easy_getinfo(ch->cp, option, &slist) == CURLE_OK) { in PHP_FUNCTION()
2713 if (curl_easy_getinfo(ch->cp, option, &c_off) == CURLE_OK) { in PHP_FUNCTION()
2797 if (!ch->cp) { in curl_free_obj()
2805 curl_easy_cleanup(ch->cp); in curl_free_obj()
2969 curl_easy_reset(ch->cp); in PHP_FUNCTION()
2994 if ((res = curl_easy_escape(ch->cp, ZSTR_VAL(str), ZSTR_LEN(str)))) { in PHP_FUNCTION()
3023 if ((out = curl_easy_unescape(ch->cp, ZSTR_VAL(str), ZSTR_LEN(str), &out_len))) { in PHP_FUNCTION()
3046 RETURN_LONG(curl_easy_pause(ch->cp, bitmask)); in PHP_FUNCTION()
3064 error = curl_easy_upkeep(ch->cp); in PHP_FUNCTION()