array( // values from the request 'method' => $request->getMethod(), 'header' => implode("\r\n", $request->getHeaders()), 'content' => $request->getContent(), 'protocol_version' => $request->getProtocolVersion(), // values from the current client 'ignore_errors' => $this->getIgnoreErrors(), 'max_redirects' => $this->getMaxRedirects(), 'timeout' => $this->getTimeout(), ), 'ssl' => array( 'verify_peer' => $this->getVerifyPeer(), ), ); if ($this->proxy) { $options['http']['proxy'] = $this->proxy; $options['http']['request_fulluri'] = true; } return $options; } }