I have two scripts that do virtually the same thing, however for this particular URL they do not work...
Code: Select all
<?php
$url = "https://www.novaworld.com/Players/Stats.aspx?id=33680801261&p=616065";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_POST, 0);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$returned = curl_exec($ch);
curl_error($ch);
curl_close($ch);
echo $returned;
?>Code: Select all
<?php
$url= "https://www.novaworld.com/Players/Stats.aspx?id=33680801261&p=616065";
$content = file_get_contents($url);
echo $content;
?>Ive tried these scripts on three servers now. On my home development windows server they both work fine, on my other two remote (linux) servers (hosted by two different companies) the scripts do not work. Ive checked with my hosts and they DO allow outgoing secure connection and cURL DOES work because the script works using this as the URL
Code: Select all
$url = "https://adwords.google.com/select/Login";I think ive read almost every post regarding using cURL and https connections and what ive done covers it all (i think) any ideas?
Thank You