|
Comments for: ian_gilfillan20070202
| Message # 1510041: |
|
Date: 06/04/07 18:54
By: Zainuddin Subject: trouble in using curl i am using curl and sending data.following is my code. $user="kevin@eccno.com"; $pass="ryno23"; $url2="http://manage.skenzo.com/chk.php"; $cookie_file_path="cookie.txt"; $POSTFIELDS="email=$user&password=$pass&referer=/summary.php"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url2); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_USERAGENT, $agent); curl_setopt($ch, CURLOPT_TIMEOUT, 20); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file_path); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file_path); curl_setopt($ch, CURLOPT_POSTFIELDS, $POSTFIELDS); curl_setopt($ch, CURLOPT_POST, 1); $page=curl_exec ($ch); echo $page; curl_close ($ch); i have recd the message "Browser does not support cookies" |
Previous Message | Next Message |
| Comments: | ||
| trouble in using curl | Zainuddin | 06/04/07 18:54 |
|
If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly. | ||


