Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
<?php
$curl = curl_init("http://www.domain.com/");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_PROXY, "proxy_address");
curl_setopt($curl, CURLOPT_PROXYPORT, proxy_port);
$x = curl_exec($curl);
$infos = curl_getinfo($curl);
curl_close ($curl);
echo "<pre>";
var_dump($infos);
echo "</pre>";
?>
<?php
$userAgent = 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)';
$url = 'http://www.spiderace.com/samplefiles/testfile.zip';
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_NOBODY, 1);
curl_setopt($curl, CURLOPT_USERAGENT, $userAgent);
curl_setopt($curl, CURLOPT_PROXYPORT, 3128);
curl_setopt($curl, CURLOPT_PROXY, "217.219.97.11");
curl_setopt($curl, CURLOPT_HEADER, 1);
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($curl, CURLOPT_FAILONERROR, 1);
$x = curl_exec($curl);
if(!curl_errno($curl))
{
$infos = curl_getinfo($curl);
echo "<pre>";
var_dump($infos);
echo "</pre>";
}
else
{
echo curl_error($curl);
}
curl_close ($curl);
?>
array
'url' => string 'http://www.spiderace.com/samplefiles/testfile.zip' (length=49)
'content_type' => string 'application/zip' (length=15)
'http_code' => int 200
'header_size' => int 271
'request_size' => int 218
'filetime' => int -1
'ssl_verify_result' => int 0
'redirect_count' => int 0
'total_time' => float 1.467
'namelookup_time' => float 0
'connect_time' => float 0.234
'pretransfer_time' => float 0.234
'size_upload' => float 0
'size_download' => float 0
'speed_download' => float 0
'speed_upload' => float 0
'download_content_length' => float 435108
'upload_content_length' => float 0
'starttransfer_time' => float 1.467
'redirect_time' => float 0
'certinfo' =>
array
empty