Below is the PHP/curl code that just browse the yahoo mail's login page which is a HTTPS link. When the content returned, it will print it on browser, which will appear as if it is Yahoo login page :)
You can set other options timeout, Post values for Post method, etc. By the way, If you don't know how to configure Curl with PHP then follow the link http://icfun.blogspot.com/2008/04/configure-php-curl-with-apache.html
## HTTPS url that you are targeting.
$url = "https://login.yahoo.com/config/login?";
$ch = curl_init();
curl_setopt($ch, CURLOPT_USERAGENT, 'Opera/9.23 (Windows NT 5.1; U; en)');
## Below two option will enable the HTTPS option.
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
$result = curl_exec($ch);