fabs2b | Oui c'est exact, je mettais mal exprime...
Sinon en CURL ca donne quelques chose comme ca :
Code :
- $sessions = curl_init();
- curl_setopt($sessions,CURLOPT_URL,'http://ex.com/exam.php');
- curl_setopt($sessions, CURLOPT_POST, 1);
- curl_setopt($sessions,CURLOPT_POSTFIELDS,'name=alex&year=18');
- curl_setopt($sessions,CURLOPT_COOKIEJAR,
- dirname(__FILE__).'/cookie.txt');
- curl_setopt($sessions,CURLOPT_FOLLOWLOCATION,0);
- curl_setopt($sessions, CURLOPT_HEADER , 1);
- curl_setopt($sessions, CURLOPT_RETURNTRANSFER,1);
- $my_load_page = curl_exec($this->sessions);
|
|