how to access third party website
<pre><code>//$out = fopen($localfilename, 'wb'); 
$url ="some https site name";
$ch = curl_init(); 
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
//curl_setopt($ch, CURLOPT_FILE, $out); 
curl_setopt($ch, CURLOPT_HEADER, 0); 
curl_setopt($ch, CURLOPT_URL, $url); 
curl_setopt($ch, CURLOPT_USERPWD, "sar:pas"); 
echo curl_exec($ch); 
return $ch;
//curl_close($ch); 
//fclose($out); 
</code></pre>

<p>i tried with code for automatic login to thirdparty website</p>

<pre><code>$url="some url name";
</code></pre>

<p>in the username password i used <code>curl_setopt($ch, CURLOPT_USERPWD, "sar:pas");</code>
i alread fetech the username password from database table 
but i am not using file &amp; i commented the belowed two lines in the code</p>

<pre><code>$out = fopen($localfilename, 'wb');
curl_setopt($ch, CURLOPT_FILE, $out);
</code></pre>

<p>i have tried the code its not working in https site
help me in this senorio</p>

<p>by
saravanamuthu</p>
