<?php
$url = "example.com";
curl_setopt($ch, CURLOPT_USERAGENT
, 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13'); 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7',
'Accept-Language: ru-RU, ru;q=0.8,en-US;q=0.6, en; q=0.4'
);
echo $data;
PD9waHAKCiAgICBlcnJvcl9yZXBvcnRpbmcoRV9BTEwpOyAKICAgICR1cmwgPSAiZXhhbXBsZS5jb20iOwoJJGNoID0gY3VybF9pbml0KCR1cmwpOwoJY3VybF9zZXRvcHQoJGNoLCBDVVJMT1BUX1VTRVJBR0VOVCwgJ01vemlsbGEvNS4wIChXaW5kb3dzOyBVOyBXaW5kb3dzIE5UIDYuMTsgZW47IHJ2OjEuOS4yLjEzKSBHZWNrby8yMDEwMTIwMyBGaXJlZm94LzMuNi4xMycpOwoJY3VybF9zZXRvcHQoJGNoLCBDVVJMT1BUX1JFVFVSTlRSQU5TRkVSLCAxKTsKCWN1cmxfc2V0b3B0KCRjaCwgQ1VSTE9QVF9DT05ORUNUVElNRU9VVCwgNjApOwoJJGhlYWRlciA9IGFycmF5KAogICAgJ0FjY2VwdDogdGV4dC9odG1sLGFwcGxpY2F0aW9uL3hodG1sK3htbCxhcHBsaWNhdGlvbi94bWw7cT0wLjksKi8qO3E9MC44JywKICAgICdBY2NlcHQtQ2hhcnNldDogSVNPLTg4NTktMSx1dGYtODtxPTAuNywqO3E9MC43JywKICAgICdBY2NlcHQtTGFuZ3VhZ2U6IHJ1LVJVLCBydTtxPTAuOCxlbi1VUztxPTAuNiwgZW47IHE9MC40JwopOwpjdXJsX3NldG9wdCgkY2gsIENVUkxPUFRfSFRUUEhFQURFUiwgJGhlYWRlcik7CgpjdXJsX3NldG9wdCgkY2gsIENVUkxPUFRfRk9MTE9XTE9DQVRJT04sIFRSVUUpOwoKCSRkYXRhID0gY3VybF9leGVjKCRjaCk7CgljdXJsX2Nsb3NlKCRjaCk7CgplY2hvICRkYXRhOw==