72 'Request has already been sent cannot '.__METHOD__
92 'Request has already been sent cannot '.__METHOD__
96 $this->cookies[$name] = $value;
113 'Request has already been sent cannot '.__METHOD__
117 $this->cookies = array_merge($this->cookies, $cookies);
132 'Request has already been sent cannot '.__METHOD__
136 $this->headers[] = $header;
151 'Request has already been sent cannot '.__METHOD__
155 $this->headers = array_merge($this->headers, $headers);
168 'Request has already been sent cannot '.__METHOD__
172 $this->isPost =
true;
187 'Request has already been sent cannot '.__METHOD__
190 if (!$this->isPost) {
192 'Cannot add a POST body to a GET request, use makePost() first.' 196 $this->postBody = $body;
212 'Request has already been sent cannot '.__METHOD__
216 $this->validateCN = $validate_cn;
233 'Request has already been sent cannot send again.' 236 if (is_null($this->url) || !$this->url) {
238 'A url must be specified via setUrl() before the request can be sent.' 261 $this->_responseHeaders = array_merge($this->_responseHeaders, $headers);
273 $this->_responseHeaders[] = $header;
285 $this->_responseBody = $body;
297 $this->_errorMessage .= $message;
314 'Request has not been sent yet. Cannot '.__METHOD__
331 'Request has not been sent yet. Cannot '.__METHOD__
336 '/HTTP\/[0-9.]+\s+([0-9]+)\s*(.*)/',
337 $this->_responseHeaders[0], $matches
341 'Bad response, no status code was found in the first line.' 345 return intval($matches[1]);
358 'Request has not been sent yet. Cannot '.__METHOD__
375 'Request has not been sent yet. Cannot '.__METHOD__
addCookies(array $cookies)
setSslCaCert($caCertPath, $validate_cn=true)
storeErrorMessage($message)
addHeaders(array $headers)
storeResponseHeaders(array $headers)
storeResponseHeader($header)