Lines Matching refs:curl
11 exit("skip: test may crash with curl < 7.61.0");
19 private $curl;
29 $this->curl = curl_init();
30 curl_setopt($this->curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);
31 curl_setopt($this->curl, CURLOPT_REDIR_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);
32 curl_setopt($this->curl, CURLOPT_HEADER, false);
33 curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, false);
34 curl_setopt($this->curl, CURLOPT_FAILONERROR, false);
35 curl_setopt($this->curl, CURLOPT_URL, 'https://http2.golang.org/serverpush');
36 curl_setopt($this->curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0);
37 curl_setopt($this->curl, CURLOPT_HEADERFUNCTION, function ($ch, $data) {
40 curl_setopt($this->curl, CURLOPT_WRITEFUNCTION, function ($ch, $data) {
43 curl_multi_add_handle($this->mh, $this->curl);