@@ -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 |
@@ -68,7 +68,7 @@ |
||
68 | 68 | |
69 | 69 | // set defaults |
70 | 70 | curl_setopt_array($this->curl, [ |
71 | - CURLOPT_PROTOCOLS => CURLPROTO_HTTP|CURLPROTO_HTTPS|CURLPROTO_FTP|CURLPROTO_FTPS, |
|
71 | + CURLOPT_PROTOCOLS => CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_FTP | CURLPROTO_FTPS, |
|
72 | 72 | CURLOPT_RETURNTRANSFER => true, |
73 | 73 | CURLOPT_SSL_VERIFYPEER => (bool)$ca_info, |
74 | 74 | CURLOPT_SSL_VERIFYHOST => 2, // Support for value 1 removed in cURL 7.28.1 |