Lines Matching refs:curl_ch
16 protected $curl_ch; variable in helper_plugin_solr
132 $this->curl_ch = curl_init();
135 curl_setopt($this->curl_ch, CURLOPT_URL, $url);
136 curl_setopt($this->curl_ch, CURLOPT_HTTPHEADER, $header);
137 curl_setopt($this->curl_ch, CURLOPT_RETURNTRANSFER, 1);
139 curl_setopt($this->curl_ch, CURLOPT_POST, 1);
140 curl_setopt($this->curl_ch, CURLOPT_POSTFIELDS, $postfields);
142 curl_setopt($this->curl_ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
143 curl_setopt($this->curl_ch, CURLINFO_HEADER_OUT, 1);
150 'curl' => $this->curl_ch,
155 $evt->data['result'] = curl_exec($this->curl_ch);
156 if (curl_errno($this->curl_ch)) {
157 throw new ConnectionException(curl_error($this->curl_ch));