Connected to mxmf.ru.
Escape character is '^]'.
GET /chek-list-napisaniya-zagolovkov.html HTTP/1.0
Host: mxmf.ru
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0)
HTTP/1.1 200 OK
Date: Sat, 03 Sep 2016 21:23:38 GMT
Server: Apache
Link: <http://mxmf.ru/?p=914>; rel=shortlink
Set-Cookie: antibot-hostia=true; path=/; domain=mxmf.ru; expires=Sun, 04-Sep-2016 21:23:38 GMT
Vary: Accept-Encoding,User-Agent
Content-Encoding: gzip
Content-Length: 26490
Connection: close
Content-Type: text/html; charset=UTF-8
...
if (confirm('Вы являетесь разработчиком?')) {
location.href = 'https://github.com/...';
} else {
alert('А зря!');
}
$s = 'HTTP/1.1 200 OK Server: nginx Date: Fri, 24 Jun 2016 00:12:40 GMT Content-Type: application/json;charset=UTF-8 Content-Length: 181 Connection: keep-alive Keep-Alive: timeout=120 Vary: Accept-Encoding Cache-Control: no-cache {"account":"789797078","balance":0.00,"currency":"643","identified":false,"account_type":"personal","account_status":"named","balance_details":{"total":0.00,"available":0.00}}';
preg_match('/^HTTP\/\d+\.\d+\s+(\d+)/', $s, $r);
$code = $r[1];
preg_match('/"balance":([\d\.]+)/', $s, $r);
$balance = $r[1];
echo($code.' '.$balance);
$a = json_decode(file_get_contents('php://input'));
$url = "http://zakupki.gov.ru/epz/order/quicksearch/rss?searchString=&morphology=on&pageNumber=1&sortDirection=false&recordsPerPage=_10&showLotsInfoHidden=false&fz44=on&fz223=on&af=on®ions=&priceFrom=0&priceTo=200000000000¤cyId=1&publishDateFrom=16.06.2016&publishDateTo=16.06.2016&updateDateFrom=&updateDateTo=&sortBy=PRICE";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:47.0) Gecko/20100101 Firefox/47.0");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 0);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 2);
curl_setopt($ch, CURLOPT_TIMEOUT, 60);
curl_setopt ($ch, CURLOPT_HEADER, 0);
$exec=curl_exec ($ch);
echo($exec);