Changeset View
Changeset View
Standalone View
Standalone View
externals/amazon-ses/ses.php
| Show First 20 Lines • Show All 524 Lines • ▼ Show 20 Lines | public function getResponse() { | ||||
| // Execute, grab errors | // Execute, grab errors | ||||
| if (curl_exec($curl)) { | if (curl_exec($curl)) { | ||||
| $this->response->code = curl_getinfo($curl, CURLINFO_HTTP_CODE); | $this->response->code = curl_getinfo($curl, CURLINFO_HTTP_CODE); | ||||
| } else { | } else { | ||||
| $this->response->error = array( | $this->response->error = array( | ||||
| 'curl' => true, | 'curl' => true, | ||||
| 'code' => curl_errno($curl), | 'code' => curl_errno($curl), | ||||
| 'message' => curl_error($curl), | 'message' => curl_error($curl), | ||||
| 'resource' => $this->resource | |||||
| ); | ); | ||||
| } | } | ||||
| @curl_close($curl); | @curl_close($curl); | ||||
| // Parse body into XML | // Parse body into XML | ||||
| if ($this->response->error === false && isset($this->response->body)) { | if ($this->response->error === false && isset($this->response->body)) { | ||||
| $this->response->body = simplexml_load_string($this->response->body); | $this->response->body = simplexml_load_string($this->response->body); | ||||
| ▲ Show 20 Lines • Show All 202 Lines • Show Last 20 Lines | |||||