Lines Matching refs:ch
86 $ch = curl_init();
88 curl_setopt($ch, CURLOPT_URL, $endpoint->getAbsoluteUri());
96 curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PUT');
98 curl_setopt($ch, CURLOPT_POST, true);
101 curl_setopt($ch, CURLOPT_POSTFIELDS, $requestBody);
103 curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
107 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
108 curl_setopt($ch, CURLOPT_MAXREDIRS, $this->maxRedirects);
111 curl_setopt($ch, CURLOPT_TIMEOUT, $this->timeout);
112 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
113 curl_setopt($ch, CURLOPT_HEADER, false);
114 curl_setopt($ch, CURLOPT_HTTPHEADER, $extraHeaders);
115 curl_setopt($ch, CURLOPT_USERAGENT, $this->userAgent);
118 curl_setopt($ch, $key, $value);
122 curl_setopt($ch, CURLOPT_SSLVERSION, 3);
125 $response = curl_exec($ch);
126 $responseCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
129 $errNo = curl_errno($ch);
130 $errStr = curl_error($ch);
131 curl_close($ch);
138 curl_close($ch);