[转载]php发送get、post请求的6种方法简明总结 方法1: 用file_get_contents 以get方式获取内容: ? 1 2 3 4 5 <?php $url=\'http://www.jb51.net/\'; $html = file_get_contents($url); echo $html; ?> 方法2: 用fopen打开url, 以get方式获取内容: ? 1 2 3 4 5 6 7 8 9 <?php $fp PHP mikel 2018-01-02 194 热度 0评论