Actions
Bug #9298
closedBug #9275: autcron: t3 page, which takes to long to respond, is not reported properly
file_get_content Timeout Error
Start date:
04.10.2019
Due date:
% Done:
0%
Estimated time:
Discuss:
Prio Planung:
Vote:
Description
Timeout file_get_contents
Minimales Skript um Fehler zu reproduzieren:
<?php
file_get_contents('https://w16.math.uzh.ch/my?id=updateGitlabPrivileges&token=78ysna3uuryvmvw5&nId=all')
mit curl funktioniert:
<?php
$curl_handle=curl_init();
curl_setopt($curl_handle, CURLOPT_URL,'https://w16.math.uzh.ch/my?id=updateGitlabPrivileges&token=78ysna3uuryvmvw5&nId=all');
curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2);
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl_handle, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($curl_handle, CURLOPT_USERAGENT, 'Your application name');
$query = curl_exec($curl_handle);
curl_close($curl_handle);
print($query);
Updated by Marc Egger over 4 years ago
- Assignee changed from Carsten Rose to Marc Egger
Updated by Marc Egger over 4 years ago
- Status changed from In Progress to Closed
Actions