Conditions | 5 |
Paths | 12 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | protected function exec(){ |
||
22 | $response = explode("\r\n\r\n", curl_multi_getcontent($this->curl), 2); |
||
23 | $headers = isset($response[0]) ? explode("\r\n", $response[0]) : null; |
||
24 | $this->response_body = isset($response[1]) ? $response[1] : null; |
||
25 | $this->getInfo(); |
||
26 | |||
27 | if(is_array($headers)){ |
||
28 | foreach($headers as $line){ |
||
29 | $this->headerLine($this->curl, $line); |
||
30 | } |
||
31 | } |
||
32 | |||
33 | } |
||
34 | |||
36 |