PHP CURL post and cookie example @ 不大會寫程式 :: 隨意窩 Xuite日誌
/* Here is a script that is usefull to : - login to a POST form, - store a session cookie, - download a file once logged in.*/// INIT CURL$ch = curl_init();// SET URL FOR THE POST FORM LOGINcurl_setopt($ch, CURLOPT_URL, 'http://www.external-site.com ......