i want to post my password to a page via curl and grab the result, result should be a page with a content.
here is my script
function f($password){
$url="http://upload5.fileflyer.com/view/7MSG4GUCYVN7E";
$useragent="Opera 9.7 (Windows NT 6.0; U; en)";
$ref="http://fileflyer.com/view/7MSG4GUCYVN7E";
$data = array();
$data["__EVENTTARGET"] = "";
$data["__EVENTARGUMENT"] = "";
$data["__VIEWSTATE"] = "%2FwEPDwUKLTk5MzI2NzQ2Mg9kFgQCAg8WAh4HVmlzaWJsZWdkAgMPFgIeBmFjdGlvbgUvaHR0cDovL3VwbG9hZDUuZmlsZWZseWVyLmNvbS92aWV3LzdNU0c0R1VDWVZON0UWGgIBDw8WAh8AZ2QWBgIBDzwrAAkBAA8WBB4IRGF0YUtleXMWAB4LXyFJdGVtQ291bnQCAWQWAmYPZBYgZg8PFgYeBFRleHQFE2V1cm92aXNpby4uLk5lVC5hdmkeC05hdmlnYXRlVXJsZR4HVG9vbFRpcAVPZXVyb3Zpc2lvbi5zb25nLmNvbnRlc3QuMjAxMC5zZW1pZmluYWwucGFydC4xLmhkdHYueHZpZC1kMnZfV3dXLkhvUmFEb1QuTmVULmF2aWRkAgEPDxYCHwQFBzEuMzcgR0JkZAICDw8WCB4ISW1hZ2VVcmwFMWh0dHA6Ly93d3cuZmlsZWZseWVyLmNvbS9JTUcvZG93bmxvYWRfZGlzYWJsZS5naWYfBWUfBgVPZXVyb3Zpc2lvbi5zb25nLmNvbnRlc3QuMjAxMC5zZW1pZmluYWwucGFydC4xLmhkdHYueHZpZC1kMnZfV3dXLkhvUmFEb1QuTmVULmF2aR8EBQZPbmxpbmVkZAIDDw8WBh8HBTFodHRwOi8vd3d3LmZpbGVmbHllci5jb20vSU1HL2Rvd25sb2FkX2Rpc2FibGUuZ2lmHwYFT2V1cm92aXNpb24uc29uZy5jb250ZXN0LjIwMTAuc2VtaWZpbmFsLnBhcnQuMS5oZHR2Lnh2aWQtZDJ2X1d3Vy5Ib1JhRG9ULk5lVC5hdmkfBAUGT25saW5lZGQCBA8PF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ziWaBLzgCSNSw%3D%3D";
$data["__EVENTVALIDATION"] = "%2FwEWBQLm%2FfKcCwK%2F5YSJDgKAyMzWCwKC15ybDwK1%2BaKAD8V4zaNGoOIsL1kYesHPHz%2B%2Fxxtu";
$data["SMSButton"] = "Go";
$data["Password"] = $password;
$data["TextBox1"] = "";
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_REFERER,$ref);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,CURLOPT_FOLLOWLOCATION,1);
curl_setopt($ch,CURLOPT_POST,1);
curl_setopt($ch,CURLOPT_USERAGENT,$useragent);
curl_setopt($ch,CURLOPT_POSTFIELDS,$data);
$result=curl_exec($ch);
echo $result;
curl_close($ch);
}
when i run my script i get the result in the $result var. but $result is empty.
curl executed fine.
no error in curl_error($ch);
curl_info($ch) say
( [url] => upload5.fileflyer.com/view/7MSG4GUCYVN7E
[content_type] =>
[http_code] => 200
[header_size] => 331
[request_size] => 306
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 1.81
[namelookup_time] => 0.733
[connect_time] => 0.983
[pretransfer_time] => 0.983
[size_upload] => 4455
[size_download] => 0
[speed_download] => 0
[speed_upload] => 2461
[download_content_length] => -1
[upload_content_length] => 4455
[starttransfer_time] => 1.232
[redirect_time] => 0 )
someone can help me please?