php http扩展 构造请求 第一次实例

来源:互联网 发布:遗传算法tsp代码 编辑:程序博客网 时间:2024/06/08 07:59

1.

    define("URL", "http://localhost/*.php");    $send = array('example_post' => "hello world");    $url = URL;    $_request = new HttpRequest($url, HTTP_METH_POST);      $_request->setPostFields($send);    $_request->send();  //发送http请求(POST)



原创粉丝点击