|
发表于 2020-7-22 17:24:07
|
显示全部楼层
广东省揭阳市
<?php
$a = $_GET['a'];
$b = $_GET['b'];
function send_post($url, $post_data) {
$postdata = http_build_query($post_data);
$options = array(
'http' => array(
'method' => 'POST',
'header' => 'Content-type:application/x-www-form-urlencoded',
'content' => $postdata,
'timeout' => 900
)
);
$context = stream_context_create($options);
$result = file_get_contents($url, false, $context);
return $result;
}
$post_data = array(
'a' => $a,
'b' => $b
);
$data = send_post('https://', $post_data);
echo $data;
?>
|
评分
-
参与人数 1 | 荣誉 +1 |
收起
理由
|
笨潴
| + 1 |
热心帮助他人,荣誉+1,希望继续努力(*^__^*) 嘻嘻! |
查看全部评分
|