Lines Matching refs:conn
52 $conn = $this->_getConnection($connection->isPersistent());
78 \curl_setopt($conn, \CURLOPT_URL, $baseUri);
79 \curl_setopt($conn, \CURLOPT_TIMEOUT_MS, $connection->getTimeout() * 1000);
80 \curl_setopt($conn, \CURLOPT_FORBID_REUSE, 0);
85 \curl_setopt($conn, \CURLOPT_ENCODING, '');
93 \curl_setopt($conn, \CURLOPT_CONNECTTIMEOUT_MS, $connectTimeoutMs);
97 \curl_setopt($conn, \CURLOPT_PROXY, $proxy);
103 \curl_setopt($conn, \CURLOPT_HTTPAUTH, $this->_getAuthType());
104 \curl_setopt($conn, \CURLOPT_USERPWD, "{$username}:{$password}");
107 $this->_setupCurl($conn);
141 \curl_setopt($conn, \CURLOPT_POSTFIELDS, \gzencode($content));
146 \curl_setopt($conn, \CURLOPT_POSTFIELDS, $content);
149 \curl_setopt($conn, \CURLOPT_POSTFIELDS, '');
152 \curl_setopt($conn, \CURLOPT_HTTPHEADER, $headers);
154 \curl_setopt($conn, \CURLOPT_NOBODY, 'HEAD' === $httpMethod);
156 \curl_setopt($conn, \CURLOPT_CUSTOMREQUEST, $httpMethod);
162 \curl_exec($conn);
168 $errorNumber = \curl_errno($conn);
170 $response = new Response($responseString, \curl_getinfo($conn, \CURLINFO_RESPONSE_CODE));
172 $response->setTransferInfo(\curl_getinfo($conn));