验证中...
Languages: PHP
Categories: 微信开发
Latest update 2019-05-20 14:15
mweb 微信 仿域名请求
Raw Copy
$authorizedHost = 'http://www.xxxx.com';
$curl = curl_init();
curl_setopt_array(
$curl,
[
CURLOPT_URL => $mweb_url,
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_HTTPHEADER => [
'Host: wx.tenpay.com',
'Accept-Language: en,zh-CN;q=0.8,zh;q=0.6,en-US;q=0.4',
'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
'Upgrade-Insecure-Requests: 1',
"Referer: {$authorizedHost}",
],
]
);
$result = curl_exec($curl);
$match = [];
preg_match('/var\surl="(.*?)"/', $result, $match);
$diaourl = $match[1];
echo $diaourl;exit;

Comment list( 0 )

You need to Sign in for post a comment

Help Search

Gitee_you_jiang_zheng_wen Zheng_wen_close