php post 数据 HttpClient
2017-10-10 16:49
501 查看
function ttt() {
$client = new HttpClient ( 'pp.loc' );
$client->post (
'/admin/mmstest/kkk', array ('username' => 'Simon',
'password' => 'ducks' ) );
$pageContents =
$client->getContent ();
echo $pageContents;
exit;
}
function
kkk() {
echo
7777;
exit;
}
$client = new HttpClient ( 'pp.loc' );
$client->post (
'/admin/mmstest/kkk', array ('username' => 'Simon',
'password' => 'ducks' ) );
$pageContents =
$client->getContent ();
echo $pageContents;
exit;
}
function
kkk() {
echo
7777;
exit;
}
相关文章推荐
- iPhone HTTP Post发送数据心得
- 一个httpclient post 的例子
- iPhone http Post数据
- [php]通过http post发送json数据
- 我的Android进阶之旅------>Android发送GET和POST以及HttpClient发送POST请求给服务器响应
- 向服务器提交数据(GET-POST-AsyncHttpClient)
- 数据挖掘常用算法及实现(http://bbs.chinakdd.com/forum.php?mod=viewthread&tid=4055&extra=page%3D1)
- PHP 浮点型数据
- httpclient发送不带参数post数据
- Java+HttpClient实现Request Payload Post数据
- Httpclient4.5.2 POST Json 数据到另外一个网站, 解析
- HttpClient使用post方式模拟表单提交数据到服务器并下载服务器文件
- [置顶] HttpClient通过Post方式发送Json数据
- httpclientpost网络获取数据
- Android网络编程之HttpClient&HttpGet&HttpPost
- Java 通过HttpClient Post方式提交json,并从服务端返回json数据
- Android系列之网络(三)----使用HttpClient发送HTTP请求(分别通过GET和POST方法发送数据)
- Post Json 例子 Spring Rest Template & HttpClient
- HttpClient 使用 java -- POST方式带参提交数据
- php 向指定url 发送 post数据 (http)