Home
last modified time | relevance | path

Searched refs:curl_setopt (Results 26 – 50 of 91) sorted by relevance

1234

/PHP-7.3/ext/standard/tests/file/
H A Dbug52820.phpt11 curl_setopt($handle, CURLOPT_VERBOSE, true);
12 curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
13 if (!curl_setopt($handle, CURLOPT_STDERR, fopen("php://memory", "w+")))
19 curl_setopt($handle, CURLOPT_VERBOSE, true);
20 curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
21 curl_setopt($handle, CURLOPT_STDERR, $o = fopen($url, "w+"));
/PHP-7.3/ext/curl/tests/
H A Dcurl_multi_getcontent_error4.phpt19curl_setopt($ch1, CURLOPT_URL, "file://".dirname(__FILE__). DIRECTORY_SEPARATOR . "curl_testdata1.…
20curl_setopt($ch2, CURLOPT_URL, "file://".dirname(__FILE__). DIRECTORY_SEPARATOR . "curl_testdata2.…
21 curl_setopt($ch1, CURLOPT_RETURNTRANSFER, true);
22 curl_setopt($ch2, CURLOPT_RETURNTRANSFER, true);
53 Warning: curl_setopt() expects parameter 1 to be resource, null given in %s on line %d
57 Warning: curl_setopt() expects parameter 1 to be resource, null given in %s on line %d
H A Dbug69316.phpt14 curl_setopt($ch, CURLOPT_COOKIE, str_repeat("a", $FILE_size - 1));
25 curl_setopt($ch, CURLOPT_BUFFERSIZE, 10);
26 curl_setopt($ch, CURLOPT_HEADERFUNCTION, "hdr_callback");
27 curl_setopt($ch, CURLOPT_FILE, $f_file);
28 curl_setopt($ch, CURLOPT_URL, $url);
H A Dcurl_copy_handle_basic_008.phpt13 curl_setopt($ch, CURLOPT_NOPROGRESS, 0);
14 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
15 curl_setopt($ch, CURLOPT_PROGRESSFUNCTION, function() { });
H A Dcurl_basic_011.phpt9 /* Prototype : bool curl_setopt(resource ch, int option, mixed value)
25 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
26 curl_setopt($ch, CURLOPT_COOKIE, 'foo=bar');
27 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
H A Dcurl_basic_012.phpt9 /* Prototype : bool curl_setopt(resource ch, int option, mixed value)
25 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
26 curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
27 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
H A Dcurl_basic_013.phpt9 /* Prototype : bool curl_setopt(resource ch, int option, mixed value)
25 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
26 curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
27 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
H A Dbug46711.phpt2 Bug #46711 (lost memory when foreach is used for values passed to curl_setopt())
18 curl_setopt( $ch, CURLOPT_AUTOREFERER , TRUE );
21 curl_setopt( $ch, $option, $value );
H A Dcurl_basic_005.phpt10 /* Prototype : bool curl_setopt(resource ch, int option, mixed value)
26 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
27 curl_setopt($ch, CURLOPT_USERAGENT, 'cURL phpt');
28 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
H A Dcurl_multi_getcontent_error2.phpt19curl_setopt($ch1, CURLOPT_URL, "file://".dirname(__FILE__). DIRECTORY_SEPARATOR . "curl_testdata1.…
20curl_setopt($ch2, CURLOPT_URL, "file://".dirname(__FILE__). DIRECTORY_SEPARATOR . "curl_testdata2.…
21 curl_setopt($ch1, CURLOPT_RETURNTRANSFER, true);
22 curl_setopt($ch2, CURLOPT_RETURNTRANSFER, true);
H A Dcurl_copy_handle_basic_002.phpt19 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
20 curl_setopt($ch, CURLOPT_POST, 1);
21 curl_setopt($ch, CURLOPT_POSTFIELDS, "Hello=World&Foo=Bar&Person=John%20Doe");
22 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
H A Dcurl_copy_handle_basic_005.phpt20 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
21 curl_setopt($ch, CURLOPT_POST, 1);
22 curl_setopt($ch, CURLOPT_POSTFIELDS, "Hello=World&Foo=Bar&Person=John%20Doe");
23 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
H A Dcurl_multi_getcontent_error1.phpt19curl_setopt($ch1, CURLOPT_URL, "file://".dirname(__FILE__). DIRECTORY_SEPARATOR . "curl_testdata1.…
20curl_setopt($ch2, CURLOPT_URL, "file://".dirname(__FILE__). DIRECTORY_SEPARATOR . "curl_testdata2.…
21 curl_setopt($ch1, CURLOPT_RETURNTRANSFER, true);
22 curl_setopt($ch2, CURLOPT_RETURNTRANSFER, true);
H A Dcurl_basic_004.phpt10 /* Prototype : bool curl_setopt(resource ch, int option, mixed value)
26 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
27 curl_setopt($ch, CURLOPT_REFERER, 'http://www.refer.er');
28 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
H A Dcurl_multi_getcontent_basic3.phpt19 curl_setopt($ch1, CURLOPT_URL, "{$host}/get.php?test=getpost&get_param=Hello%20World");
20curl_setopt($ch2, CURLOPT_URL, "file://".dirname(__FILE__). DIRECTORY_SEPARATOR . "curl_testdata2.…
21 curl_setopt($ch1, CURLOPT_RETURNTRANSFER, true);
22 curl_setopt($ch2, CURLOPT_RETURNTRANSFER, true);
H A Dcurl_multi_getcontent_error3.phpt19curl_setopt($ch1, CURLOPT_URL, "file://".dirname(__FILE__). DIRECTORY_SEPARATOR . "curl_testdata1.…
20curl_setopt($ch2, CURLOPT_URL, "file://".dirname(__FILE__). DIRECTORY_SEPARATOR . "curl_testdata2.…
21 curl_setopt($ch1, CURLOPT_RETURNTRANSFER, true);
22 curl_setopt($ch2, CURLOPT_RETURNTRANSFER, true);
H A Dcurl_setopt_CURLOPT_READFUNCTION.phpt31 curl_setopt($oCurl, CURLOPT_URL, $sWriteUrl);
32 curl_setopt($oCurl, CURLOPT_UPLOAD, 1);
33 curl_setopt($oCurl, CURLOPT_READFUNCTION, "custom_readfunction" );
34 curl_setopt($oCurl, CURLOPT_INFILE, $hReadHandle );
H A Dcurl_reset.phpt20 curl_setopt($ch, CURLOPT_FILE, $testfile_fp);
21 curl_setopt($ch, CURLOPT_URL, 'file://' . $log_file);
25 curl_setopt($ch, CURLOPT_URL, 'file://' . $log_file);
H A Dcurl_multi_segfault.phpt22 curl_setopt ( $ch , CURLOPT_URL, $url );
23 curl_setopt ( $ch , CURLOPT_RETURNTRANSFER, 1 );
26 curl_setopt ( $ch , CURLOPT_FTP_USE_EPSV, 0 );
27 curl_setopt ( $ch , CURLOPT_FTP_SKIP_PASV_IP, 1 );
H A Dbug79741.phpt2 Bug #79741: curl_setopt CURLOPT_POSTFIELDS asserts on object with declared properties
11 curl_setopt($ch, CURLOPT_POSTFIELDS, new Test);
H A Dcurl_writeheader_callback.phpt23 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
24 curl_setopt($ch, CURLOPT_HEADERFUNCTION, 'curl_header_callback');
25 curl_setopt($ch, CURLOPT_URL, $host);
H A Dbug48203.phpt17 curl_setopt($ch, CURLOPT_VERBOSE, 1);
18 curl_setopt($ch, CURLOPT_STDERR, $fp);
19 curl_setopt($ch, CURLOPT_URL, curl_cli_server_start());
H A Dbug48203-win32.phpt17 curl_setopt($ch, CURLOPT_VERBOSE, 1);
18 curl_setopt($ch, CURLOPT_STDERR, $fp);
19 curl_setopt($ch, CURLOPT_URL, curl_cli_server_start());
H A Dcurl_file_deleted_before_curl_close.phpt21 curl_setopt($ch, CURLOPT_STDERR, $handle);
22 curl_setopt($ch, CURLOPT_VERBOSE, 1);
23 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
H A Dbug52827.phpt2 Bug #52827 (curl_setopt with CURLOPT_STDERR erroneously increments the resource refcount)
17 * cast to a FILE* handle in curl_setopt already
28 curl_setopt($handle, CURLOPT_STDERR, $s);

Completed in 35 milliseconds

1234