Home | History | Annotate | Download | only in http

Lines Matching defs:code

2 // Use of this source code is governed by a BSD-style license that can be
64 CURLMcode code = curl_interface_->MultiSocketAction(
66 CHECK_NE(CURLM_CALL_MULTI_PERFORM, code)
69 if (code == CURLM_OK)
133 CURLcode code = curl_interface_->EasySetOptStr(curl_handle, CURLOPT_URL, url);
135 if (code == CURLE_OK) {
136 code = curl_interface_->EasySetOptStr(curl_handle, CURLOPT_CAPATH,
139 if (code == CURLE_OK) {
140 code =
143 if (code == CURLE_OK) {
144 code =
147 if (code == CURLE_OK && !user_agent.empty()) {
148 code = curl_interface_->EasySetOptStr(
151 if (code == CURLE_OK && !referer.empty()) {
152 code =
155 if (code == CURLE_OK && !proxy_.empty()) {
156 code = curl_interface_->EasySetOptStr(curl_handle, CURLOPT_PROXY, proxy_);
158 if (code == CURLE_OK) {
162 code = curl_interface_->EasySetOptInt(
169 if (code == CURLE_OK) {
171 code = curl_interface_->EasySetOptInt(curl_handle, CURLOPT_HTTPGET, 1);
173 code = curl_interface_->EasySetOptInt(curl_handle, CURLOPT_NOBODY, 1);
175 code = curl_interface_->EasySetOptInt(curl_handle, CURLOPT_UPLOAD, 1);
178 code = curl_interface_->EasySetOptInt(curl_handle, CURLOPT_POST, 1);
179 if (code == CURLE_OK) {
180 code = curl_interface_->EasySetOptPtr(
183 if (code == CURLE_OK && method != request_type::kPost) {
184 code = curl_interface_->EasySetOptStr(
190 if (code != CURLE_OK) {
191 AddEasyCurlError(error, FROM_HERE, code, curl_interface_.get());
235 CURLMcode code = curl_interface_->MultiAddHandle(
237 if (code != CURLM_OK) {
239 AddMultiCurlError(&error, FROM_HERE, code, curl_interface_.get());
269 CURLcode code,
272 brillo::string_utils::ToString(code),
273 curl_interface->EasyStrError(code));
278 CURLMcode code,
281 brillo::string_utils::ToString(code),
282 curl_interface->MultiStrError(code));
297 CURLMcode code = curl_interface_->MultiSetSocketCallback(
299 if (code == CURLM_OK) {
300 code = curl_interface_->MultiSetTimerCallback(
303 if (code != CURLM_OK) {
304 AddMultiCurlError(error, FROM_HERE, code, curl_interface_.get());
435 void Transport::OnTransferComplete(Connection* connection, CURLcode code) {
441 << (code == CURLE_OK ? "successfully" : "with an error");
442 if (code != CURLE_OK) {
444 AddEasyCurlError(&error, FROM_HERE, code, curl_interface_.get());