@@ -58,7 +58,7 @@ |
||
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | $this->curl = $curl; |
| 61 | - $this->curl_info = new stdClass; |
|
| 61 | + $this->curl_info = new stdClass; |
|
| 62 | 62 | $this->response_error = new stdClass; |
| 63 | 63 | $this->response_headers = new stdClass; |
| 64 | 64 | |
@@ -93,12 +93,12 @@ |
||
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | $url = parse_url($url); |
| 96 | - $this->host = !isset($url['host']) ? null : $url['host']; |
|
| 97 | - $this->port = !isset($url['port']) ? null : $url['port']; |
|
| 98 | - $this->path = !isset($url['path']) ? null : $url['path']; |
|
| 99 | - $this->scheme = !isset($url['scheme']) ? null : $url['scheme']; |
|
| 100 | - $this->query = !isset($url['query']) ? null : $url['query']; |
|
| 101 | - $this->fragment = !isset($url['fragment']) ? null : $url['fragment']; |
|
| 96 | + $this->host = !isset($url['host']) ? null : $url['host']; |
|
| 97 | + $this->port = !isset($url['port']) ? null : $url['port']; |
|
| 98 | + $this->path = !isset($url['path']) ? null : $url['path']; |
|
| 99 | + $this->scheme = !isset($url['scheme']) ? null : $url['scheme']; |
|
| 100 | + $this->query = !isset($url['query']) ? null : $url['query']; |
|
| 101 | + $this->fragment = !isset($url['fragment']) ? null : $url['fragment']; |
|
| 102 | 102 | |
| 103 | 103 | if($this->query){ |
| 104 | 104 | parse_str($this->query, $this->parsedquery); |
@@ -97,7 +97,8 @@ |
||
| 97 | 97 | $this->body = $body; |
| 98 | 98 | |
| 99 | 99 | $method = strtoupper($method); |
| 100 | - if(in_array($method, ['GET', 'POST'], true)){ // @todo |
|
| 100 | + if(in_array($method, ['GET', 'POST'], true)){ |
|
| 101 | +// @todo |
|
| 101 | 102 | $this->method = $method; |
| 102 | 103 | } |
| 103 | 104 | |