kiss-o-matic Posted November 29, 2006 Share Posted November 29, 2006 Hate to ask such a general question, but can't figure out what I'm doing wrong.Here's the general gist of my attempt.[code]// login to Yahoo$url = "https://login.yahoo.com/config/login_verify2?.done=http://auctions.yahoo.com&.src=auc&.intl=us"$ch = curl_init();curl_setopt($ch, CURLOPT_URL, $url);curl_setopt($ch, CURLOPT_HEADER, 1);curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1)curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2 );curl_setopt($ch, CURLOPT_TIMEOUT, 5)';curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt');$data = curl_exec ($ch);print $data;[/code]It just times out, and tells me:Warning: curl_error(): 7 is not a valid cURL handle resource inAm I missing something?EDIT: Fixed typos in subject & body Link to comment https://forums.phpfreaks.com/topic/28839-curl-ssl-in-harmony/ Share on other sites More sharing options...
trq Posted November 29, 2006 Share Posted November 29, 2006 You start by defining your resource handle using the varuable $cu, then ever after try and refer to it using $ch.And what, (at all) does this have to do with SSH? Link to comment https://forums.phpfreaks.com/topic/28839-curl-ssl-in-harmony/#findComment-132047 Share on other sites More sharing options...
kiss-o-matic Posted November 29, 2006 Author Share Posted November 29, 2006 Sorry, that was a typo. Assuming I defined the curl seesion properly[quote]$ch = curl_init()[/quote]I want to know how to access secure page (SSL) pages. As it stands, it just times out with an error. Link to comment https://forums.phpfreaks.com/topic/28839-curl-ssl-in-harmony/#findComment-132239 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.