1. <?
  2. $url="http://www.fileflyer.com/view/1F38RIEIWJKOCp";
  3. $file=@file($url);
  4. $count=count($file);
  5. for($i='0';$i<$count;$i++)
  6. {
  7. if (strstr($file[$i],"lockedbtn")){
  8. $main=$file[$i]; $flag=1;break;
  9. }
  10. }
  11. if ($flag==1){
  12. $reffer = "http://www.fileflyer.com";
  13. $agent = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4)Gecko/20030624 Netscape/7.1 (ax)";
  14. $posturl="http://www.fileflyer.com/view/1F38RIEIWJKOCp";
  15. $postcontent = array();
  16. $postcontent['Password']='******';
  17. $postcontent['SMSButton']='Go';
  18. $ch = curl_init();
  19. curl_setopt($ch,CURLOPT_URL,$posturl);
  20. curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,2);
  21. curl_setopt($ch,CURLOPT_POST,1);
  22. curl_setopt($ch,CURLOPT_POSTFIELDS,$postcontent);
  23. curl_setopt($ch,CURLOPT_USERAGENT, $agent);
  24. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  25. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  26. curl_setopt($ch, CURLOPT_REFERER, $reffer);
  27. $result=curl_exec($ch);
  28. curl_close($ch);
  29. echo $result;
  30. }
  31. ?>