//fsocket模拟post提交
$purl = "http://loc*alh*ost*/netphp/test2.php?uu=rrrrrrrrrrrr";
print_r(parse_url($url));
sock_post($purl,"uu=55555555555555555");
//fsocket模拟get提交
function sock_get($url, $query)
{
$info = parse_url($url);
$fp = fsockopen($info["host"], 80, $errno, $errstr, 3);
$head = "GET ".$info['path']."?".$info["query"]." HTTP/1.0 ";
$head .= "Host: ".$info['host']." ";
$head .= " ";
$write = fputs($fp, $head);
while (!feof($fp))
{
$line = fread($fp,4096);
echo $line;
}
}
sock_post($purl,"uu=rrrrrrrrrrrrrrrr");
function sock_post($url, $query)
{
$info = parse_url($url);
$fp = fsockopen($info["host"], 80, $errno, $errstr, 3);
$head = "POST ".$info['path']."?".$info["query"]." HTTP/1.0 ";
$head .= "Host: ".$info['host']." ";
$head .= "Referer: http://".$info['host'].$info['path']." ";
$head .= "Content-type: application/x-www-form-urlencoded ";
$head .= "Content-Length: ".strlen(trim($query))." ";
$head .= " ";
$head .= trim($query);
$write = fputs($fp, $head);
while (!feof($fp))
{
$line = fread($fp,4096);
echo $line;
}
}
?>
原神纳塔3个亮闪闪的贝壳收集位置攻略-原神纳塔3个亮闪闪的贝壳在哪里收集
崩坏星穹铁道雪国飘摇寒苦愁任务怎么做-崩坏星穹铁道雪国飘摇寒苦愁任务攻略
原神5.0下半卡池的基尼奇怎么培养-原神基尼奇培养攻略+突破材料(武器,天赋)
魔兽世界埃霍恩的冰霜之镰如何获得 魔兽世界埃霍恩的冰霜之镰获取详细攻略
归龙潮的长命锁潮品如何选择 归龙潮的长命锁潮品详情推荐
DNF消灭魔王之旅活动啥时候开始 DNF消灭魔王之旅活动开始时间详情介绍