I have the following script below... It's running but not 100% correct. It seems like the variable sf that I specify in $LOGINURL is not being sent. I know this because if sf is set, the form will redirect to aboutYou.aspx with that particular zipcode that I set on $POSTFIELDS (30002), instead of redirecting to greatdatingsite.com (I try this manually and it works). But in my case, it seems like the GET variable sf is not being read properly. Do I have to set the GET variables somewhere like I did with the POST?
Thank you,
Ren
$cookie_file_path = "D:/sites/scan/cookie.txt"; // Please set your Cookie File path
$LOGINURL = "http://ge-dating.com/welcome.aspx?sf=ppmscan";
$reffer = "http://ge-dating.com/welcome.aspx?sf=ppmscan";
$POSTFIELDS = '__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=dDwxMTg0MTQ2NzE4OztsPFdlYmZvcm0xOkdPX0J1dHRvbjs%2BPil2i%2Bu5P66baOqqdfH089kSnDuJ&Webform1%3AWebGender=female&Webform1%3AWebZipCode=30002&Webform1%3AGO_Button.x=80&Webform1%3AGO_Button.y=31';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$LOGINURL);
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$POSTFIELDS);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_REFERER, $reffer);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file_path);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file_path);
$result = curl_exec ($ch);
//print $result;
curl_close ($ch);