Lines Matching refs:curl
4 curl
12 exit("skip: test may crash with curl < 8.1.0");
20 private $curl;
30 $this->curl = curl_init();
31 curl_setopt($this->curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);
32 curl_setopt($this->curl, CURLOPT_REDIR_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);
33 curl_setopt($this->curl, CURLOPT_HEADER, false);
34 curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, false);
35 curl_setopt($this->curl, CURLOPT_FAILONERROR, false);
36 curl_setopt($this->curl, CURLOPT_URL, 'https://localhost/serverpush');
37 curl_setopt($this->curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0);
38 curl_setopt($this->curl, CURLOPT_HEADERFUNCTION, function ($ch, $data) {
41 curl_setopt($this->curl, CURLOPT_WRITEFUNCTION, function ($ch, $data) {
44 curl_multi_add_handle($this->mh, $this->curl);