php跨域

<?php
header('Content-type:text/html; charset="utf-8"');


$url = 'http://10.32.41.194:8098/regions/list';

$content = file_get_contents($url);
// $content = iconv('gbk', 'utf-8', $content); 编码正常可以去掉,否者显示就不正常了
echo $content;
?>
  

 

posted @ 2017-04-25 11:55  Model-Zachary  阅读(135)  评论(0编辑  收藏  举报