Esempio n. 1
0
 private function performGet(HttpResponse $response)
 {
     $context = stream_context_create(array('http' => array('timeout' => 15)));
     $content = file_get_contents($this->url, false, $context);
     if (!$content) {
         throw new Exception('No content received');
     }
     $response->setContent($content);
 }