HI Experts,
Please help me to get the complete url after execution of this code:
Below is the script for Domain API - Check Domain Availibilty
<%
$dapi_username = "username";
$dapi_password = "password";
$domainname = "yourdomainname.com";
$postfields = array();
$postfields[] = array("dapi_username",$dapi_username);
$postfields[] = array("dapi_password",$dapi_password);
$postfields[] = array("domainname",$domainname);
$postfields[] = array("thisPage","pispCheckDomain");
foreach($postfields as $subarray)
{
list($foo, $bar) = $subarray;
$bar = urlencode($bar);
$postedfields[] = "$foo=$bar";
}
$urlstring = join(" ", $postedfields);
$urlstring = ereg_replace(" ", "&", $urlstring);
$ch = curl_init(" http://www.domainsrs.net/api/DomainAPI.php");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $urlstring);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,0);
curl_setopt($ch, CURLOPT_VERBOSE,1);
curl_setopt($ch, CURLOPT_REFERER, " http://www.indialinks.com");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
curl_close($ch);
echo $data;
%>
regards,
Ptakash