// Generated by curl-to-PHP: http://incarnate.github.io/curl-to-php/ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://www.mytischtennis.de/clicktt/WTTV/19-20/verein/113022/SSV-Meschede/spielplan/'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET'); curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate'); $headers = array(); $headers[] = 'Dnt: 1'; $headers[] = 'Accept-Encoding: gzip, deflate, br'; $headers[] = 'Accept-Language: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4'; $headers[] = 'Upgrade-Insecure-Requests: 1'; $headers[] = 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36'; $headers[] = 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8'; $headers[] = 'Referer: https://community.contao.org/de/showthread.php?68413-Webseite-auslesen'; $headers[] = 'Cookie: SRV=82; __utmt=1; __utma=74314254.1097616632.1508186607.1508186607.1508186607.1; __utmb=74314254.2.10.1508186607; __utmc=74314254; __utmz=74314254.1508186607.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)'; $headers[] = 'Connection: keep-alive'; $headers[] = 'Cache-Control: max-age=0'; curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); $result = curl_exec($ch); if (curl_errno($ch)) { echo 'Error:' . curl_error($ch); } curl_close($ch);