Lines Matching refs:ch

24 $ch = curl_init();
25 curl_setopt($ch, CURLOPT_URL, "{$host}/get.inc?test=file");
26 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
27 curl_setopt($ch, CURLOPT_VERBOSE, 0);
28 var_dump(curl_setopt($ch, CURLOPT_DEBUGFUNCTION, function() {
31 curl_exec($ch);
32 curl_setopt($ch, CURLOPT_VERBOSE, 1);
35 $ch = curl_init();
36 curl_setopt($ch, CURLOPT_URL, "{$host}/get.inc?test=file");
37 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
38 curl_setopt($ch, CURLOPT_VERBOSE, 1);
40 curl_setopt($ch, CURLOPT_STDERR, $stderr);
41 $curlVerboseOutput = curl_exec($ch);
49 curl_setopt($ch, CURLOPT_STDERR, $stderr);
52 var_dump(curl_setopt($ch, CURLOPT_DEBUGFUNCTION, function(CurlHandle $curlHandle, int $type, string…
59 $result = curl_exec($ch);
81 $ch = curl_init();
82 var_dump(curl_setopt($ch, CURLINFO_HEADER_OUT, true));
83 var_dump(curl_setopt($ch, CURLOPT_DEBUGFUNCTION, null));
84 var_dump(curl_setopt($ch, CURLINFO_HEADER_OUT, true));
85 var_dump(curl_setopt($ch, CURLOPT_DEBUGFUNCTION, 'strlen'));
87 var_dump(curl_setopt($ch, CURLINFO_HEADER_OUT, true));
92 $chCopy = curl_copy_handle($ch);
103 $ch = curl_init();
104 var_dump(curl_setopt($ch, CURLINFO_HEADER_OUT, true));
105 var_dump(curl_setopt($ch, CURLOPT_DEBUGFUNCTION, null));
106 var_dump(curl_setopt($ch, CURLINFO_HEADER_OUT, true));
107 var_dump(curl_setopt($ch, CURLOPT_DEBUGFUNCTION, 'strlen'));
108 $chCopy = curl_copy_handle($ch);
109 var_dump(curl_setopt($ch, CURLOPT_DEBUGFUNCTION, 'strlen'));
114 $ch = curl_init("{$host}/get.inc?test=file");
115 var_dump(curl_setopt($ch, CURLOPT_DEBUGFUNCTION, null));
116 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
117 var_dump(curl_exec($ch));
120 $ch = curl_init("{$host}/get.inc?test=file");
121 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
122 var_dump(curl_getinfo($ch, CURLINFO_HEADER_OUT));
123 var_dump(curl_setopt($ch, CURLINFO_HEADER_OUT, true));
124 var_dump(curl_getinfo($ch, CURLINFO_HEADER_OUT));
125 var_dump(curl_setopt($ch, CURLOPT_DEBUGFUNCTION, static function() {}));
126 var_dump(curl_getinfo($ch, CURLINFO_HEADER_OUT));
127 var_dump($result = curl_exec($ch));
128 var_dump(curl_getinfo($ch, CURLINFO_HEADER_OUT));
131 $ch = curl_init("{$host}/get.inc?test=file");
132 curl_setopt($ch, CURLOPT_DEBUGFUNCTION, static function() {
135 var_dump(curl_exec($ch));
136 curl_setopt($ch, CURLOPT_VERBOSE, true);
138 var_dump($result = curl_exec($ch));
143 var_dump(curl_getinfo($ch, CURLINFO_HEADER_OUT));
146 $ch = curl_init("{$host}/get.inc?test=file");
148 curl_setopt_array($ch, [
155 curl_exec($ch);
158 $ch2 = curl_copy_handle($ch);