Lines Matching refs:cp

182 		error = curl_easy_setopt(ch->cp, CURLOPT_PROTOCOLS, CURLPROTO_ALL & ~CURLPROTO_FILE);  in php_curl_option_url()
201 error = curl_easy_setopt(ch->cp, CURLOPT_URL, url); in php_curl_option_url()
204 error = curl_easy_setopt(ch->cp, CURLOPT_URL, copystr); in php_curl_option_url()
228 curl_easy_setopt(ch->cp, CURLOPT_STDERR, stderr); in _php_curl_verify_handlers()
242 curl_easy_setopt(ch->cp, CURLOPT_INFILE, (void *) ch); in _php_curl_verify_handlers()
256 curl_easy_setopt(ch->cp, CURLOPT_WRITEHEADER, (void *) ch); in _php_curl_verify_handlers()
271 curl_easy_setopt(ch->cp, CURLOPT_FILE, (void *) ch); in _php_curl_verify_handlers()
1303 static int curl_debug(CURL *cp, curl_infotype type, char *buf, size_t buf_len, void *ctx) /* {{{ */ in curl_debug() argument
1544 CURL *cp; in PHP_FUNCTION() local
1554 cp = curl_easy_init(); in PHP_FUNCTION()
1555 if (!cp) { in PHP_FUNCTION()
1563 ch->cp = cp; in PHP_FUNCTION()
1575 curl_easy_setopt(ch->cp, CURLOPT_NOPROGRESS, 1); in PHP_FUNCTION()
1576 curl_easy_setopt(ch->cp, CURLOPT_VERBOSE, 0); in PHP_FUNCTION()
1577 curl_easy_setopt(ch->cp, CURLOPT_ERRORBUFFER, ch->err.str); in PHP_FUNCTION()
1578 curl_easy_setopt(ch->cp, CURLOPT_WRITEFUNCTION, curl_write); in PHP_FUNCTION()
1579 curl_easy_setopt(ch->cp, CURLOPT_FILE, (void *) ch); in PHP_FUNCTION()
1580 curl_easy_setopt(ch->cp, CURLOPT_READFUNCTION, curl_read); in PHP_FUNCTION()
1581 curl_easy_setopt(ch->cp, CURLOPT_INFILE, (void *) ch); in PHP_FUNCTION()
1582 curl_easy_setopt(ch->cp, CURLOPT_HEADERFUNCTION, curl_write_header); in PHP_FUNCTION()
1583 curl_easy_setopt(ch->cp, CURLOPT_WRITEHEADER, (void *) ch); in PHP_FUNCTION()
1584 curl_easy_setopt(ch->cp, CURLOPT_DNS_USE_GLOBAL_CACHE, 1); in PHP_FUNCTION()
1585 curl_easy_setopt(ch->cp, CURLOPT_DNS_CACHE_TIMEOUT, 120); in PHP_FUNCTION()
1586 curl_easy_setopt(ch->cp, CURLOPT_MAXREDIRS, 20); /* prevent infinite redirects */ in PHP_FUNCTION()
1590 curl_easy_setopt(ch->cp, CURLOPT_CAINFO, cainfo); in PHP_FUNCTION()
1594 curl_easy_setopt(ch->cp, CURLOPT_NOSIGNAL, 1); in PHP_FUNCTION()
1613 CURL *cp; in PHP_FUNCTION() local
1623 cp = curl_easy_duphandle(ch->cp); in PHP_FUNCTION()
1624 if (!cp) { in PHP_FUNCTION()
1632 dupch->cp = cp; in PHP_FUNCTION()
1660 curl_easy_setopt(ch->cp, CURLOPT_PASSWDDATA, (void *) dupch); in PHP_FUNCTION()
1682 curl_easy_setopt(dupch->cp, CURLOPT_ERRORBUFFER, dupch->err.str); in PHP_FUNCTION()
1683 curl_easy_setopt(dupch->cp, CURLOPT_FILE, (void *) dupch); in PHP_FUNCTION()
1684 curl_easy_setopt(dupch->cp, CURLOPT_INFILE, (void *) dupch); in PHP_FUNCTION()
1685 curl_easy_setopt(dupch->cp, CURLOPT_WRITEHEADER, (void *) dupch); in PHP_FUNCTION()
1686 curl_easy_setopt(dupch->cp, CURLOPT_PROGRESSDATA, (void *) dupch); in PHP_FUNCTION()
1713 error = curl_easy_setopt(ch->cp, option, 2); in _php_curl_setopt()
1810 error = curl_easy_setopt(ch->cp, option, Z_LVAL_PP(zvalue)); in _php_curl_setopt()
1816 error = curl_easy_setopt(ch->cp, option, (curl_off_t)Z_LVAL_PP(zvalue)); in _php_curl_setopt()
1828 error = curl_easy_setopt(ch->cp, option, Z_LVAL_PP(zvalue)); in _php_curl_setopt()
1833 error = curl_easy_setopt(ch->cp, CURLOPT_POSTREDIR, Z_LVAL_PP(zvalue) & CURL_REDIR_POST_ALL); in _php_curl_setopt()
1889 error = curl_easy_setopt(ch->cp, option, copystr); in _php_curl_setopt()
1894 error = curl_easy_setopt(ch->cp, option, Z_STRVAL_PP(zvalue)); in _php_curl_setopt()
1981 error = curl_easy_setopt(ch->cp, option, fp); in _php_curl_setopt()
2024 curl_easy_setopt(ch->cp, CURLOPT_PROGRESSFUNCTION, curl_progress); in _php_curl_setopt()
2025 curl_easy_setopt(ch->cp, CURLOPT_PROGRESSDATA, ch); in _php_curl_setopt()
2050 error = curl_easy_setopt(ch->cp, CURLOPT_PASSWDFUNCTION, curl_passwd); in _php_curl_setopt()
2051 error = curl_easy_setopt(ch->cp, CURLOPT_PASSWDDATA, (void *) ch); in _php_curl_setopt()
2149 error = curl_easy_setopt(ch->cp, CURLOPT_HTTPPOST, first); in _php_curl_setopt()
2155 error = curl_easy_setopt(ch->cp, CURLOPT_POSTFIELDSIZE, Z_STRLEN_PP(zvalue)); in _php_curl_setopt()
2156 error = curl_easy_setopt(ch->cp, CURLOPT_COPYPOSTFIELDS, Z_STRVAL_PP(zvalue)); in _php_curl_setopt()
2164 error = curl_easy_setopt(ch->cp, CURLOPT_POSTFIELDS, post); in _php_curl_setopt()
2165 error = curl_easy_setopt(ch->cp, CURLOPT_POSTFIELDSIZE, Z_STRLEN_PP(zvalue)); in _php_curl_setopt()
2200 error = curl_easy_setopt(ch->cp, option, slist); in _php_curl_setopt()
2223 error = curl_easy_setopt(ch->cp, option, Z_STRVAL_PP(zvalue)); in _php_curl_setopt()
2227 error = curl_easy_setopt(ch->cp, option, copystr); in _php_curl_setopt()
2235 curl_easy_setopt(ch->cp, CURLOPT_DEBUGFUNCTION, curl_debug); in _php_curl_setopt()
2236 curl_easy_setopt(ch->cp, CURLOPT_DEBUGDATA, (void *)ch); in _php_curl_setopt()
2237 curl_easy_setopt(ch->cp, CURLOPT_VERBOSE, 1); in _php_curl_setopt()
2239 curl_easy_setopt(ch->cp, CURLOPT_DEBUGFUNCTION, NULL); in _php_curl_setopt()
2240 curl_easy_setopt(ch->cp, CURLOPT_DEBUGDATA, NULL); in _php_curl_setopt()
2241 curl_easy_setopt(ch->cp, CURLOPT_VERBOSE, 0); in _php_curl_setopt()
2349 error = curl_easy_perform(ch->cp); in PHP_FUNCTION()
2413 if (curl_easy_getinfo(ch->cp, CURLINFO_EFFECTIVE_URL, &s_code) == CURLE_OK) { in PHP_FUNCTION()
2416 if (curl_easy_getinfo(ch->cp, CURLINFO_CONTENT_TYPE, &s_code) == CURLE_OK) { in PHP_FUNCTION()
2426 if (curl_easy_getinfo(ch->cp, CURLINFO_HTTP_CODE, &l_code) == CURLE_OK) { in PHP_FUNCTION()
2429 if (curl_easy_getinfo(ch->cp, CURLINFO_HEADER_SIZE, &l_code) == CURLE_OK) { in PHP_FUNCTION()
2432 if (curl_easy_getinfo(ch->cp, CURLINFO_REQUEST_SIZE, &l_code) == CURLE_OK) { in PHP_FUNCTION()
2435 if (curl_easy_getinfo(ch->cp, CURLINFO_FILETIME, &l_code) == CURLE_OK) { in PHP_FUNCTION()
2438 if (curl_easy_getinfo(ch->cp, CURLINFO_SSL_VERIFYRESULT, &l_code) == CURLE_OK) { in PHP_FUNCTION()
2441 if (curl_easy_getinfo(ch->cp, CURLINFO_REDIRECT_COUNT, &l_code) == CURLE_OK) { in PHP_FUNCTION()
2444 if (curl_easy_getinfo(ch->cp, CURLINFO_TOTAL_TIME, &d_code) == CURLE_OK) { in PHP_FUNCTION()
2447 if (curl_easy_getinfo(ch->cp, CURLINFO_NAMELOOKUP_TIME, &d_code) == CURLE_OK) { in PHP_FUNCTION()
2450 if (curl_easy_getinfo(ch->cp, CURLINFO_CONNECT_TIME, &d_code) == CURLE_OK) { in PHP_FUNCTION()
2453 if (curl_easy_getinfo(ch->cp, CURLINFO_PRETRANSFER_TIME, &d_code) == CURLE_OK) { in PHP_FUNCTION()
2456 if (curl_easy_getinfo(ch->cp, CURLINFO_SIZE_UPLOAD, &d_code) == CURLE_OK) { in PHP_FUNCTION()
2459 if (curl_easy_getinfo(ch->cp, CURLINFO_SIZE_DOWNLOAD, &d_code) == CURLE_OK) { in PHP_FUNCTION()
2462 if (curl_easy_getinfo(ch->cp, CURLINFO_SPEED_DOWNLOAD, &d_code) == CURLE_OK) { in PHP_FUNCTION()
2465 if (curl_easy_getinfo(ch->cp, CURLINFO_SPEED_UPLOAD, &d_code) == CURLE_OK) { in PHP_FUNCTION()
2468 if (curl_easy_getinfo(ch->cp, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &d_code) == CURLE_OK) { in PHP_FUNCTION()
2471 if (curl_easy_getinfo(ch->cp, CURLINFO_CONTENT_LENGTH_UPLOAD, &d_code) == CURLE_OK) { in PHP_FUNCTION()
2474 if (curl_easy_getinfo(ch->cp, CURLINFO_STARTTRANSFER_TIME, &d_code) == CURLE_OK) { in PHP_FUNCTION()
2477 if (curl_easy_getinfo(ch->cp, CURLINFO_REDIRECT_TIME, &d_code) == CURLE_OK) { in PHP_FUNCTION()
2481 if (curl_easy_getinfo(ch->cp, CURLINFO_CERTINFO, &ci) == CURLE_OK) { in PHP_FUNCTION()
2489 if (curl_easy_getinfo(ch->cp, CURLINFO_PRIMARY_IP, &s_code) == CURLE_OK) { in PHP_FUNCTION()
2494 if (curl_easy_getinfo(ch->cp, CURLINFO_PRIMARY_PORT, &l_code) == CURLE_OK) { in PHP_FUNCTION()
2497 if (curl_easy_getinfo(ch->cp, CURLINFO_LOCAL_IP, &s_code) == CURLE_OK) { in PHP_FUNCTION()
2500 if (curl_easy_getinfo(ch->cp, CURLINFO_LOCAL_PORT, &l_code) == CURLE_OK) { in PHP_FUNCTION()
2505 if (curl_easy_getinfo(ch->cp, CURLINFO_REDIRECT_URL, &s_code) == CURLE_OK) { in PHP_FUNCTION()
2530 if (curl_easy_getinfo(ch->cp, option, &s_code) == CURLE_OK && s_code) { in PHP_FUNCTION()
2550 if (curl_easy_getinfo(ch->cp, option, &code) == CURLE_OK) { in PHP_FUNCTION()
2572 if (curl_easy_getinfo(ch->cp, option, &code) == CURLE_OK) { in PHP_FUNCTION()
2591 if (curl_easy_getinfo(ch->cp, CURLINFO_CERTINFO, &ci) == CURLE_OK) { in PHP_FUNCTION()
2686 curl_easy_setopt(ch->cp, CURLOPT_HEADERFUNCTION, curl_write_nothing); in _php_curl_close_ex()
2687 curl_easy_setopt(ch->cp, CURLOPT_WRITEFUNCTION, curl_write_nothing); in _php_curl_close_ex()
2689 curl_easy_cleanup(ch->cp); in _php_curl_close_ex()