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