Note that there are some explanatory texts on larger screens.

plurals
  1. POCurl and gotomeeting.com
    primarykey
    data
    text
    <p>I am trying to use PHP Curl to make the registrations of <a href="https://www3.gotomeeting.com/register/432624022" rel="nofollow">https://www3.gotomeeting.com/register/432624022</a> automatic.</p> <p>Based on the corrections made by the folks, this is what I am using:</p> <pre><code>&lt;? $array=array( 'Name_First'=&gt;'Steve', 'Name_Last'=&gt;'Jobs', 'Email'=&gt;'steve@jobs.com', 'Template'=&gt;'island/webinar/registration.tmpl', 'Form'=&gt;'webinarRegistrationFo‌​rm', 'WebinarKey'=&gt;'432624022', 'ViewArchivedWebinar'=&gt;'false', 'registrant'=&gt;'', 'RegistrantTimeZoneK‌​ey'=&gt;'55', ); function dump($logArray) { echo '&lt;pre&gt;'; print_r($logArray); echo '&lt;/pre&gt;'; } function go2webinar($array){ $url='https://www3.gotomeeting.com/en_US/island/webinar/registration.flow'; $url1='https://www3.gotomeeting.com/register/432624022'; $cookie='/therightpath/cookie'; $query=http_build_query($array); $c=curl_init(); curl_setopt($c,CURLOPT_USERAGENT,'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1'); curl_setopt($c,CURLOPT_URL,$url); curl_setopt($c, CURLOPT_FOLLOWLOCATION,1); curl_setopt($c,CURLOPT_POST,count($array)); curl_setopt($c,CURLOPT_POSTFIELDS,$query); curl_setopt($c,CURLOPT_RETURNTRANSFER,1); curl_setopt($c, CURLOPT_SSL_VERIFYPEER,false); curl_setopt($c, CURLOPT_SSL_VERIFYHOST,0); curl_setopt($c, CURLOPT_COOKIEFILE,$cookie); curl_setopt($c, CURLOPT_COOKIEJAR,$cookie); curl_setopt($c, CURLOPT_REFERER,$url1); $r=curl_exec($c);//result dump(curl_getinfo($c)); if(curl_errno($c)) return curl_error($c); else{ curl_close($c); return trim($r); } } //GotoMeeting echo go2webinar($array); </code></pre> <hr> <p>The cookie is being saved as it should:</p> <pre><code># Netscape HTTP Cookie File # http://curl.haxx.se/rfc/cookie_spec.html # This file was generated by libcurl! Edit at your own risk. .gotomeeting.com TRUE / TRUE 1371763493 g2mVisitor FirstVisit%3D1340218507523%26LastVisit%3D1340227493492%26RSN%3DDEFAULT www3.gotomeeting.com FALSE / TRUE 0 g2mSession SessionInfo%3D200000000139397572%253A2B00BFBA6275B45 www3.gotomeeting.com FALSE / FALSE 0 JSESSIONID abc6tY1HKr4Hh9l-3plGt </code></pre> <p>However, I am getting a "Webinar Unavailable" page now...</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload