Can anyone help me access docline.gov?

$ch = curl_init ();
$url='http://docline.gov';
$agent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)";
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); // Allow redirection
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($ch);
curl_close($ch);
echo $result;

yields a blank page.

Never mind.
another site suggested I debug with

echo curl_error($ch);

that output led me to add:

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, TRUE);  
curl_setopt($ch, CURLOPT_CAINFO, "cacert.pem");

which worked

get cacert.pm from http://curl.haxx.se/docs/caextract.html

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.