Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function __construct( |
||
23 | $url, |
||
24 | $timeout = 10, |
||
25 | $redirects = 5, |
||
26 | $headers = null, |
||
27 | $useragent = null, |
||
28 | $force_fsockopen = false, |
||
29 | $curl_options = array() |
||
30 | ) { |
||
31 | $this->http = new \DokuHTTPClient(); |
||
32 | $this->success = $this->http->sendRequest($url); |
||
33 | |||
34 | $this->headers = $this->http->resp_headers; |
||
35 | $this->body = $this->http->resp_body; |
||
36 | $this->error = $this->http->error; |
||
37 | |||
38 | $this->method = SIMPLEPIE_FILE_SOURCE_REMOTE | SIMPLEPIE_FILE_SOURCE_FSOCKOPEN; |
||
39 | |||
40 | return $this->success; |
||
|
|||
41 | } |
||
42 | |||
61 |