Good friends to you. I am writing mail.ru parser my goal is this link

http://my.mail.ru/my/search_people?st=city&Password=&city_id=1092&Domain=&Login= 

With the help of this code, I turn to the page

 //Javascript я свиснул с сайта сграбь.ру (подсказали на этом сайте) <a href="javascript:(function(){window.name=document.location+'|||'+document.body.innerHTML; document.location='http://geepars.ru/';})()">Украсть</a> <?//сюда приходит полный адрес то есть http://my.mail.ru/my/search_people?st=city&Password=&city_id=1092&Domain=&Login= $file = $_SERVER['HTTP_REFERER']; $file2 = file_get_contents($file); //В текстовый документ я закидываю исходный код! только адресов там НЕТ)) file_put_contents("ishodnik.txt",$file2,FILE_APPEND); 

If I manually pull out the source code (with the right mouse button), then everything works! I have a sequel, the script searches for addresses and converts them into correct emails. It remains for me to turn to the page and make the script go to the end of the page and switch to another

  • First tell me how do you refer to the source code of the page at all? - xEdelweiss
  • If there is an interesting article about this I will be glad to read - Sasha
  • one
    What a question, and the answer: right click in the browser, there is a "View source". Well, or wget " site.com????q=q&a=a&b=b " - user6550
  • I fixed the question - Sasha
  • And what not how not to bypass? - Sasha

1 answer 1

curl in the course you need to take a page or

 fopen( http://my.mail.ru/my/search_people?st=city&Password=&city_id=1092&Domain=&Login=) $file = $_SERVER['HTTP_REFERER']; //в этой переменной будет хранится ссылка на предыдущую страницу 

If the problem is authorization, then curl with sending data to the server