<?php
header ("Content-Type: text/plain; charset=UTF-8");
function GetData($url, $host, $agent, $referer){
[COLOR="#FF0000"]$postdata = http_build_query(
array(
'password' => '12345',
)
);[/COLOR]
$options = array(
'http'=>array(
'method'=> "POST",
'header'=> "Host: ".$host."\r\n" .
"User-Agent: ".$agent."\r\n" .
"Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n" .
"Accept-language: en-US,en;q=0.5\r\n" .
"Accept-Encoding: text,\r\n" .
"Referer: ".$referer."\r\n" .
"Content-Type: application/x-www-form-urlencoded\r\n" .
"Content-Length: 14\r\n" .
"Upgrade-Insecure-Requests: 1\r\n" .
"Connection: Close\r\n",
'content' => $postdata,
)
);
$context = stream_context_create($options);
$file = file_get_contents($url, false, $context);
return $file;
}